提交代码
This commit is contained in:
@@ -35,6 +35,7 @@ namespace FineUIPro.Web.CQMS.QuantityManagement
|
||||
{
|
||||
GetButtonPower();
|
||||
this.DrawingId = Request.Params["DrawingId"];
|
||||
BLL.CNProfessionalService.InitCNProfessionalDownList(drpMajor, true);
|
||||
var Drawing = BLL.DrawingService.GetDrawingById(this.DrawingId);
|
||||
if (Drawing != null)
|
||||
{
|
||||
@@ -42,9 +43,24 @@ namespace FineUIPro.Web.CQMS.QuantityManagement
|
||||
this.txtWorkSection.Text = Drawing.WorkSection;
|
||||
this.txtDrawingNo.Text = Drawing.DrawingNo;
|
||||
this.txtDrawingName.Text = Drawing.DrawingName;
|
||||
this.txtMajor.Text = Drawing.Major;
|
||||
this.drpMajor.SelectedValue = Drawing.Major;
|
||||
this.txtAcceptDate.Text = Drawing.AcceptDate.HasValue ? string.Format("{0:yyyy-MM-dd}", Drawing.AcceptDate) : "";
|
||||
this.txtCompletionStatus.Text = Drawing.CompletionStatus;
|
||||
if (Drawing.CompletionStatus == true)
|
||||
{
|
||||
this.cbCompletionStatus.Checked = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
this.cbCompletionStatus.Checked = false;
|
||||
}
|
||||
if (Drawing.CompletionStatus2 == true)
|
||||
{
|
||||
this.cbCompletionStatus2.Checked = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
this.cbCompletionStatus2.Checked = false;
|
||||
}
|
||||
this.txtDutyPerson.Text = Drawing.DutyPerson;
|
||||
this.txtRemark.Text = Drawing.Remark;
|
||||
}
|
||||
@@ -63,18 +79,37 @@ namespace FineUIPro.Web.CQMS.QuantityManagement
|
||||
/// <param name="e"></param>
|
||||
protected void btnSave_Click(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
if (this.drpMajor.SelectedValue == BLL.Const._Null)
|
||||
{
|
||||
Alert.ShowInTop("请选择专业", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
Model.QuantityManagement_Drawing newDrawing = new Model.QuantityManagement_Drawing();
|
||||
newDrawing.ProjectId = this.CurrUser.LoginProjectId;
|
||||
newDrawing.WorkSection = this.txtWorkSection.Text.Trim();
|
||||
newDrawing.DrawingNo = this.txtDrawingNo.Text.Trim();
|
||||
newDrawing.DrawingName = this.txtDrawingName.Text.Trim();
|
||||
newDrawing.Major = this.txtMajor.Text.Trim();
|
||||
newDrawing.Major = this.drpMajor.SelectedValue;
|
||||
if (!string.IsNullOrEmpty(this.txtAcceptDate.Text))
|
||||
{
|
||||
newDrawing.AcceptDate = Convert.ToDateTime(this.txtAcceptDate.Text);
|
||||
}
|
||||
newDrawing.CompletionStatus = this.txtCompletionStatus.Text.Trim();
|
||||
if (cbCompletionStatus.Checked)
|
||||
{
|
||||
newDrawing.CompletionStatus = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
newDrawing.CompletionStatus = false;
|
||||
}
|
||||
if (cbCompletionStatus2.Checked)
|
||||
{
|
||||
newDrawing.CompletionStatus2 = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
newDrawing.CompletionStatus2 = false;
|
||||
}
|
||||
newDrawing.DutyPerson = this.txtDutyPerson.Text.Trim();
|
||||
newDrawing.Remark = this.txtRemark.Text.Trim();
|
||||
if (string.IsNullOrEmpty(this.DrawingId))
|
||||
|
||||
Reference in New Issue
Block a user