|
|
@ -57,7 +57,7 @@ namespace SCP.重庆北汽模塑.PlanData |
|
|
|
this.btnRelease.Text = GetNameByKey(this.btnRelease.Text); |
|
|
|
this.BTN_SAVE.Text = GetNameByKey(this.BTN_SAVE.Text); |
|
|
|
this.btnCompleteForce.Text = GetNameByKey(this.btnCompleteForce.Text); |
|
|
|
txtRemark.Label = GetNameByKey(txtRemark.Label); |
|
|
|
TXT_KBremark.Label = GetNameByKey(TXT_KBremark.Label); |
|
|
|
TXT_PoBillNum.Label = GetNameByKey(TXT_PoBillNum.Label); |
|
|
|
TXT_Site.Label = GetNameByKey(TXT_Site.Label); |
|
|
|
TXT_State_DESC.Label = GetNameByKey(TXT_State_DESC.Label); |
|
|
@ -104,9 +104,10 @@ namespace SCP.重庆北汽模塑.PlanData |
|
|
|
TXT_ModType.Text = _result.ModType.ToString(); |
|
|
|
TXT_State.Text = _result.State == null ? string.Empty : _result.State.Value.ToString(); |
|
|
|
this.TXT_VendName.Text = _result.VendName; |
|
|
|
this.txtRemark.Text = _result.Remark; |
|
|
|
this.TXT_KBremark.Text = _result.Extend1; |
|
|
|
DP_BeginTime.SelectedDate = _result.BeginTime; |
|
|
|
TXT_VendId.Text = _result.VendId; |
|
|
|
TXT_AskBillNum.Text = _result.AskBillNum; |
|
|
|
//DDL_PORT.DataSource = ScpCache.PortList.Where(p => CurrentUser.FactoryList.Contains(p.FACTORY_ID));
|
|
|
|
//DDL_PORT.DataBind();
|
|
|
|
//DDL_PORT.SelectedValue = _result.ReceivedPort;
|
|
|
@ -123,10 +124,12 @@ namespace SCP.重庆北汽模塑.PlanData |
|
|
|
btnReduce.Hidden = true; |
|
|
|
btnDeleted.Hidden = false; |
|
|
|
btnModifyDate.Hidden = false; |
|
|
|
|
|
|
|
} |
|
|
|
//发布
|
|
|
|
//发布0
|
|
|
|
if (_result.State == (int)AskState.Release) |
|
|
|
{ |
|
|
|
|
|
|
|
btnRelease.Hidden = true; |
|
|
|
btnReleaseCancel.Hidden = false; |
|
|
|
btnCompleteForce.Hidden = true; |
|
|
@ -143,6 +146,7 @@ namespace SCP.重庆北汽模塑.PlanData |
|
|
|
//确认
|
|
|
|
if (_result.State == (int)AskState.Confirm) |
|
|
|
{ |
|
|
|
|
|
|
|
btnRelease.Hidden = true; |
|
|
|
btnReleaseCancel.Hidden = true; |
|
|
|
BTN_SAVE.Hidden = true; |
|
|
@ -156,6 +160,7 @@ namespace SCP.重庆北汽模塑.PlanData |
|
|
|
//作废
|
|
|
|
if (_result.State == (int)AskState.Reject) |
|
|
|
{ |
|
|
|
|
|
|
|
btnRelease.Hidden = true; |
|
|
|
btnReleaseCancel.Hidden = true; |
|
|
|
btnReject.Hidden = true; |
|
|
@ -205,7 +210,6 @@ namespace SCP.重庆北汽模塑.PlanData |
|
|
|
{ |
|
|
|
SET_PO_STATE("发布成功!", AskState.Release); |
|
|
|
} |
|
|
|
|
|
|
|
protected void btnReleaseCancel_Click(object sender, EventArgs e) |
|
|
|
{ |
|
|
|
SET_PO_STATE("取消发布成功!", AskState.New); |
|
|
@ -335,7 +339,22 @@ namespace SCP.重庆北汽模塑.PlanData |
|
|
|
Alert.Show(string.Join(",", ret.MessageList.ToArray())); |
|
|
|
} |
|
|
|
} |
|
|
|
protected void ddlGridPageSize_SelectedIndexChanged(object sender, EventArgs e) |
|
|
|
protected void btnUpdate_Click(object sender, EventArgs e) |
|
|
|
{ |
|
|
|
TB_ASK entity = new TB_ASK(); |
|
|
|
entity.AskBillNum = TXT_AskBillNum.Text; |
|
|
|
entity.Extend1 = TXT_KBremark.Text; |
|
|
|
var ret = SCP_ASK_CONTROLLER.Update_TB_ASK(entity); |
|
|
|
if (ret.State == ReturnStatus.Succeed) |
|
|
|
{ |
|
|
|
Alert.Show("修改成功"); |
|
|
|
}else |
|
|
|
{ |
|
|
|
Alert.Show("修改失败"); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
protected void ddlGridPageSize_SelectedIndexChanged(object sender, EventArgs e) |
|
|
|
{ |
|
|
|
Grid_V_TB_ASK_DETAIL.PageSize = Convert.ToInt32(ddlGridPageSize.SelectedValue); |
|
|
|
BindDetail(); |
|
|
|