| 
									
										
										
										
											2025-02-12 09:27:47 +08:00
										 |  |  |  | using BLL; | 
					
						
							|  |  |  |  | using System; | 
					
						
							|  |  |  |  | using System.Linq; | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  | namespace FineUIPro.Web.CQMS.QuantityManagement | 
					
						
							|  |  |  |  | { | 
					
						
							|  |  |  |  |     public partial class DayInputEdit : PageBase | 
					
						
							|  |  |  |  |     { | 
					
						
							|  |  |  |  |         #region 定义变量 | 
					
						
							|  |  |  |  |         /// <summary> | 
					
						
							|  |  |  |  |         /// 主键 | 
					
						
							|  |  |  |  |         /// </summary> | 
					
						
							|  |  |  |  |         public string DayInputId | 
					
						
							|  |  |  |  |         { | 
					
						
							|  |  |  |  |             get | 
					
						
							|  |  |  |  |             { | 
					
						
							|  |  |  |  |                 return (string)ViewState["DayInputId"]; | 
					
						
							|  |  |  |  |             } | 
					
						
							|  |  |  |  |             set | 
					
						
							|  |  |  |  |             { | 
					
						
							|  |  |  |  |                 ViewState["DayInputId"] = value; | 
					
						
							|  |  |  |  |             } | 
					
						
							|  |  |  |  |         } | 
					
						
							|  |  |  |  |         #endregion | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |         #region 加载 | 
					
						
							|  |  |  |  |         /// <summary> | 
					
						
							|  |  |  |  |         /// 加载页面 | 
					
						
							|  |  |  |  |         /// </summary> | 
					
						
							|  |  |  |  |         /// <param name="sender"></param> | 
					
						
							|  |  |  |  |         /// <param name="e"></param> | 
					
						
							|  |  |  |  |         protected void Page_Load(object sender, EventArgs e) | 
					
						
							|  |  |  |  |         { | 
					
						
							|  |  |  |  |             if (!IsPostBack) | 
					
						
							|  |  |  |  |             { | 
					
						
							|  |  |  |  |                 GetButtonPower(); | 
					
						
							|  |  |  |  |                 this.DayInputId = Request.Params["DayInputId"]; | 
					
						
							| 
									
										
										
										
											2025-03-05 16:48:17 +08:00
										 |  |  |  |                 BLL.DrawingService.InitDrawingChangeDropDownList(drpDrawingNo, this.CurrUser.LoginProjectId, true); | 
					
						
							|  |  |  |  |                 BLL.TeamGroupService.InitTeamGroupProjectDropDownList(drpWorkTeam, this.CurrUser.LoginProjectId, true); | 
					
						
							| 
									
										
										
										
											2025-02-12 09:27:47 +08:00
										 |  |  |  |                 var DayInput = BLL.DayInputService.GetDayInputById(this.DayInputId); | 
					
						
							|  |  |  |  |                 if (DayInput != null) | 
					
						
							|  |  |  |  |                 { | 
					
						
							| 
									
										
										
										
											2025-03-05 16:48:17 +08:00
										 |  |  |  |                     this.hdDayInputId.Text = this.DayInputId; | 
					
						
							| 
									
										
										
										
											2025-02-12 09:27:47 +08:00
										 |  |  |  |                     Model.QuantityManagement_Base b = BLL.BaseService.GetBaseById(DayInput.BaseId); | 
					
						
							|  |  |  |  |                     if (b != null) | 
					
						
							|  |  |  |  |                     { | 
					
						
							|  |  |  |  |                         Model.QuantityManagement_Drawing drawing = BLL.DrawingService.GetDrawingById(b.DrawingId); | 
					
						
							|  |  |  |  |                         this.DayInputId = DayInput.DayInputId; | 
					
						
							|  |  |  |  |                         if (drawing != null) | 
					
						
							|  |  |  |  |                         { | 
					
						
							|  |  |  |  |                             this.txtWorkSection.Text = drawing.WorkSection; | 
					
						
							|  |  |  |  |                             this.drpDrawingNo.SelectedValue = b.DrawingId; | 
					
						
							|  |  |  |  |                             this.txtDrawingName.Text = drawing.DrawingName; | 
					
						
							|  |  |  |  |                         } | 
					
						
							|  |  |  |  |                         BLL.BaseService.InitPartDropDownList(this.drpPart, b.DrawingId, true); | 
					
						
							|  |  |  |  |                         this.drpPart.SelectedValue = b.Part; | 
					
						
							|  |  |  |  |                         BLL.BaseService.InitProjectContentDropDownList(this.drpProjectContent, b.DrawingId, b.Part, true); | 
					
						
							|  |  |  |  |                         this.drpProjectContent.SelectedValue = b.BaseId; | 
					
						
							|  |  |  |  |                         this.txtUnit.Text = b.Unit; | 
					
						
							| 
									
										
										
										
											2025-03-05 16:48:17 +08:00
										 |  |  |  |                         decimal usedAmount = (from x in Funs.DB.QuantityManagement_DayInput where x.BaseId == DayInput.BaseId select x.DayAmount ?? 0).Sum(); | 
					
						
							| 
									
										
										
										
											2025-02-12 09:27:47 +08:00
										 |  |  |  |                         if (b.Amount != null) | 
					
						
							|  |  |  |  |                         { | 
					
						
							| 
									
										
										
										
											2025-03-05 16:48:17 +08:00
										 |  |  |  |                             this.txtAmount.Text = (b.Amount - usedAmount).ToString(); | 
					
						
							|  |  |  |  |                             this.txtDayAmount.MaxValue = Convert.ToDouble(b.Amount - usedAmount); | 
					
						
							|  |  |  |  |                         } | 
					
						
							|  |  |  |  |                         if (!string.IsNullOrEmpty(DayInput.WorkTeam)) | 
					
						
							|  |  |  |  |                         { | 
					
						
							|  |  |  |  |                             this.drpWorkTeam.SelectedValue = DayInput.WorkTeam; | 
					
						
							| 
									
										
										
										
											2025-02-12 09:27:47 +08:00
										 |  |  |  |                         } | 
					
						
							|  |  |  |  |                         if (DayInput.Date != null) | 
					
						
							|  |  |  |  |                         { | 
					
						
							|  |  |  |  |                             this.txtDate.Text = string.Format("{0:yyyy-MM-dd}", DayInput.Date); | 
					
						
							|  |  |  |  |                         } | 
					
						
							|  |  |  |  |                         if (DayInput.DayAmount != null) | 
					
						
							|  |  |  |  |                         { | 
					
						
							|  |  |  |  |                             this.txtDayAmount.Text = DayInput.DayAmount.ToString(); | 
					
						
							|  |  |  |  |                         } | 
					
						
							|  |  |  |  |                     } | 
					
						
							|  |  |  |  |                 } | 
					
						
							|  |  |  |  |                 else | 
					
						
							|  |  |  |  |                 { | 
					
						
							|  |  |  |  |                     this.txtDate.Text = string.Format("{0:yyyy-MM-dd}", DateTime.Now); | 
					
						
							|  |  |  |  |                 } | 
					
						
							|  |  |  |  |             } | 
					
						
							|  |  |  |  |         } | 
					
						
							|  |  |  |  |         #endregion | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |         protected void drpDrawingNo_SelectedIndexChanged(object sender, EventArgs e) | 
					
						
							|  |  |  |  |         { | 
					
						
							|  |  |  |  |             Model.QuantityManagement_Drawing drawing = BLL.DrawingService.GetDrawingById(this.drpDrawingNo.SelectedValue); | 
					
						
							| 
									
										
										
										
											2025-03-05 16:48:17 +08:00
										 |  |  |  |             Model.QuantityManagement_Change change = BLL.ChangeService.GetChangeById(this.drpDrawingNo.SelectedValue); | 
					
						
							| 
									
										
										
										
											2025-02-12 09:27:47 +08:00
										 |  |  |  |             if (drawing != null) | 
					
						
							|  |  |  |  |             { | 
					
						
							|  |  |  |  |                 this.txtWorkSection.Text = drawing.WorkSection; | 
					
						
							|  |  |  |  |                 this.txtDrawingName.Text = drawing.DrawingName; | 
					
						
							|  |  |  |  |                 BLL.BaseService.InitPartDropDownList(this.drpPart, drawing.DrawingId, true); | 
					
						
							|  |  |  |  |                 this.drpPart.SelectedValue = BLL.Const._Null; | 
					
						
							|  |  |  |  |             } | 
					
						
							| 
									
										
										
										
											2025-03-05 16:48:17 +08:00
										 |  |  |  |             else if (change != null) | 
					
						
							|  |  |  |  |             { | 
					
						
							|  |  |  |  |                 this.txtWorkSection.Text = change.WorkSection; | 
					
						
							|  |  |  |  |                 this.txtDrawingName.Text = change.ChangeName; | 
					
						
							|  |  |  |  |                 BLL.BaseService.InitPartDropDownList(this.drpPart, change.ChangeId, true); | 
					
						
							|  |  |  |  |                 this.drpPart.SelectedValue = BLL.Const._Null; | 
					
						
							|  |  |  |  |             } | 
					
						
							|  |  |  |  |             else  | 
					
						
							| 
									
										
										
										
											2025-02-12 09:27:47 +08:00
										 |  |  |  |             { | 
					
						
							|  |  |  |  |                 this.txtWorkSection.Text = string.Empty; | 
					
						
							|  |  |  |  |                 this.txtDrawingName.Text = string.Empty; | 
					
						
							|  |  |  |  |                 this.drpPart.Items.Clear(); | 
					
						
							|  |  |  |  |                 Funs.FineUIPleaseSelect(this.drpPart); | 
					
						
							|  |  |  |  |                 this.drpPart.SelectedValue = BLL.Const._Null; | 
					
						
							|  |  |  |  |             } | 
					
						
							|  |  |  |  |             this.drpProjectContent.Items.Clear(); | 
					
						
							|  |  |  |  |             Funs.FineUIPleaseSelect(this.drpProjectContent); | 
					
						
							|  |  |  |  |             this.drpProjectContent.SelectedValue = BLL.Const._Null; | 
					
						
							|  |  |  |  |             this.txtUnit.Text = string.Empty; | 
					
						
							|  |  |  |  |             this.txtAmount.Text = string.Empty; | 
					
						
							| 
									
										
										
										
											2025-03-05 16:48:17 +08:00
										 |  |  |  |             this.drpWorkTeam.SelectedValue = BLL.Const._Null; | 
					
						
							| 
									
										
										
										
											2025-02-12 09:27:47 +08:00
										 |  |  |  |         } | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |         protected void drpPart_SelectedIndexChanged(object sender, EventArgs e) | 
					
						
							|  |  |  |  |         { | 
					
						
							|  |  |  |  |             if (this.drpPart.SelectedValue != BLL.Const._Null) | 
					
						
							|  |  |  |  |             { | 
					
						
							|  |  |  |  |                 BLL.BaseService.InitProjectContentDropDownList(this.drpProjectContent, this.drpDrawingNo.SelectedValue, this.drpPart.SelectedValue, true); | 
					
						
							|  |  |  |  |                 this.drpProjectContent.SelectedValue = BLL.Const._Null; | 
					
						
							|  |  |  |  |             } | 
					
						
							|  |  |  |  |             else | 
					
						
							|  |  |  |  |             { | 
					
						
							|  |  |  |  |                 this.drpProjectContent.Items.Clear(); | 
					
						
							|  |  |  |  |                 Funs.FineUIPleaseSelect(this.drpProjectContent); | 
					
						
							|  |  |  |  |                 this.drpProjectContent.SelectedValue = BLL.Const._Null; | 
					
						
							|  |  |  |  |             } | 
					
						
							|  |  |  |  |             this.txtUnit.Text = string.Empty; | 
					
						
							|  |  |  |  |             this.txtAmount.Text = string.Empty; | 
					
						
							| 
									
										
										
										
											2025-03-05 16:48:17 +08:00
										 |  |  |  |             this.drpWorkTeam.SelectedValue = BLL.Const._Null; | 
					
						
							| 
									
										
										
										
											2025-02-12 09:27:47 +08:00
										 |  |  |  |         } | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |         protected void drpProjectContent_SelectedIndexChanged(object sender, EventArgs e) | 
					
						
							|  |  |  |  |         { | 
					
						
							|  |  |  |  |             if (this.drpProjectContent.SelectedValue != BLL.Const._Null) | 
					
						
							|  |  |  |  |             { | 
					
						
							|  |  |  |  |                 Model.QuantityManagement_Base b = BLL.BaseService.GetBaseById(this.drpProjectContent.SelectedValue); | 
					
						
							|  |  |  |  |                 if (b != null) | 
					
						
							|  |  |  |  |                 { | 
					
						
							|  |  |  |  |                     this.txtUnit.Text = b.Unit; | 
					
						
							| 
									
										
										
										
											2025-03-05 16:48:17 +08:00
										 |  |  |  |                     decimal usedAmount = (from x in Funs.DB.QuantityManagement_DayInput where x.BaseId == this.drpProjectContent.SelectedValue select x).ToList().Sum(x => x.DayAmount ?? 0); | 
					
						
							| 
									
										
										
										
											2025-02-12 09:27:47 +08:00
										 |  |  |  |                     if (b.Amount != null) | 
					
						
							|  |  |  |  |                     { | 
					
						
							| 
									
										
										
										
											2025-03-05 16:48:17 +08:00
										 |  |  |  |                         this.txtAmount.Text = (b.Amount - usedAmount).ToString(); | 
					
						
							|  |  |  |  |                         this.txtDayAmount.MaxValue = Convert.ToDouble(b.Amount - usedAmount); | 
					
						
							| 
									
										
										
										
											2025-02-12 09:27:47 +08:00
										 |  |  |  |                     } | 
					
						
							| 
									
										
										
										
											2025-03-05 16:48:17 +08:00
										 |  |  |  |                     this.drpWorkTeam.SelectedValue = b.WorkTeam; | 
					
						
							| 
									
										
										
										
											2025-02-12 09:27:47 +08:00
										 |  |  |  |                 } | 
					
						
							|  |  |  |  |             } | 
					
						
							|  |  |  |  |             else | 
					
						
							|  |  |  |  |             { | 
					
						
							|  |  |  |  |                 this.drpProjectContent.Items.Clear(); | 
					
						
							|  |  |  |  |                 Funs.FineUIPleaseSelect(this.drpProjectContent); | 
					
						
							|  |  |  |  |                 this.drpProjectContent.SelectedValue = BLL.Const._Null; | 
					
						
							|  |  |  |  |                 this.txtUnit.Text = string.Empty; | 
					
						
							|  |  |  |  |                 this.txtAmount.Text = string.Empty; | 
					
						
							| 
									
										
										
										
											2025-03-05 16:48:17 +08:00
										 |  |  |  |                 this.drpWorkTeam.SelectedValue = BLL.Const._Null; | 
					
						
							| 
									
										
										
										
											2025-02-12 09:27:47 +08:00
										 |  |  |  |             } | 
					
						
							|  |  |  |  |         } | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |         #region 保存 | 
					
						
							|  |  |  |  |         /// <summary> | 
					
						
							|  |  |  |  |         /// 保存按钮 | 
					
						
							|  |  |  |  |         /// </summary> | 
					
						
							|  |  |  |  |         /// <param name="sender"></param> | 
					
						
							|  |  |  |  |         /// <param name="e"></param> | 
					
						
							|  |  |  |  |         protected void btnSave_Click(object sender, EventArgs e) | 
					
						
							|  |  |  |  |         { | 
					
						
							|  |  |  |  |             if (this.drpDrawingNo.SelectedValue == BLL.Const._Null) | 
					
						
							|  |  |  |  |             { | 
					
						
							|  |  |  |  |                 Alert.ShowInTop("请选择图号", MessageBoxIcon.Warning); | 
					
						
							|  |  |  |  |                 return; | 
					
						
							|  |  |  |  |             } | 
					
						
							|  |  |  |  |             if (this.drpPart.SelectedValue == BLL.Const._Null) | 
					
						
							|  |  |  |  |             { | 
					
						
							|  |  |  |  |                 Alert.ShowInTop("请选择部位", MessageBoxIcon.Warning); | 
					
						
							|  |  |  |  |                 return; | 
					
						
							|  |  |  |  |             } | 
					
						
							|  |  |  |  |             if (this.drpProjectContent.SelectedValue == BLL.Const._Null) | 
					
						
							|  |  |  |  |             { | 
					
						
							|  |  |  |  |                 Alert.ShowInTop("请选择项目内容", MessageBoxIcon.Warning); | 
					
						
							|  |  |  |  |                 return; | 
					
						
							|  |  |  |  |             } | 
					
						
							| 
									
										
										
										
											2025-03-05 16:48:17 +08:00
										 |  |  |  |             if (this.drpWorkTeam.SelectedValue == BLL.Const._Null) | 
					
						
							|  |  |  |  |             { | 
					
						
							|  |  |  |  |                 Alert.ShowInTop("请选择实际作业队", MessageBoxIcon.Warning); | 
					
						
							|  |  |  |  |                 return; | 
					
						
							|  |  |  |  |             } | 
					
						
							| 
									
										
										
										
											2025-02-12 09:27:47 +08:00
										 |  |  |  |             Model.QuantityManagement_DayInput newDayInput = new Model.QuantityManagement_DayInput(); | 
					
						
							|  |  |  |  |             newDayInput.ProjectId = this.CurrUser.LoginProjectId; | 
					
						
							|  |  |  |  |             newDayInput.BaseId = this.drpProjectContent.SelectedValue; | 
					
						
							|  |  |  |  |             newDayInput.Date = Funs.GetNewDateTimeOrNow(this.txtDate.Text.Trim()); | 
					
						
							|  |  |  |  |             newDayInput.DayAmount = Funs.GetNewDecimal(this.txtDayAmount.Text.Trim()); | 
					
						
							| 
									
										
										
										
											2025-03-05 16:48:17 +08:00
										 |  |  |  |             newDayInput.WorkTeam = this.drpWorkTeam.SelectedValue; | 
					
						
							| 
									
										
										
										
											2025-02-12 09:27:47 +08:00
										 |  |  |  |             if (string.IsNullOrEmpty(this.DayInputId)) | 
					
						
							|  |  |  |  |             { | 
					
						
							| 
									
										
										
										
											2025-03-05 16:48:17 +08:00
										 |  |  |  |                 if (string.IsNullOrEmpty(this.hdDayInputId.Text)) | 
					
						
							|  |  |  |  |                 { | 
					
						
							|  |  |  |  |                     newDayInput.DayInputId = SQLHelper.GetNewID(typeof(Model.QuantityManagement_DayInput)); | 
					
						
							|  |  |  |  |                 } | 
					
						
							|  |  |  |  |                 else | 
					
						
							|  |  |  |  |                 { | 
					
						
							|  |  |  |  |                     newDayInput.DayInputId = this.hdDayInputId.Text; | 
					
						
							|  |  |  |  |                 } | 
					
						
							| 
									
										
										
										
											2025-02-12 09:27:47 +08:00
										 |  |  |  |                 newDayInput.CompileMan = this.CurrUser.UserId; | 
					
						
							|  |  |  |  |                 newDayInput.CompileDate = DateTime.Now; | 
					
						
							|  |  |  |  |                 //var sour = Funs.DB.AttachFile.FirstOrDefault(x => x.ToKeyId == newDayInput.DayInputId); | 
					
						
							|  |  |  |  |                 //if (sour == null || string.IsNullOrEmpty(sour.AttachUrl)) | 
					
						
							|  |  |  |  |                 //{ | 
					
						
							|  |  |  |  |                 //    Alert.ShowInTop("请上传附件!", MessageBoxIcon.Warning); | 
					
						
							|  |  |  |  |                 //    return; | 
					
						
							|  |  |  |  |                 //} | 
					
						
							|  |  |  |  |                 BLL.DayInputService.AddDayInput(newDayInput); | 
					
						
							|  |  |  |  |             } | 
					
						
							|  |  |  |  |             else | 
					
						
							|  |  |  |  |             { | 
					
						
							|  |  |  |  |                 newDayInput.DayInputId = this.DayInputId; | 
					
						
							|  |  |  |  |                 //var sour = Funs.DB.AttachFile.FirstOrDefault(x => x.ToKeyId == this.DayInputId); | 
					
						
							|  |  |  |  |                 //if (sour == null || string.IsNullOrEmpty(sour.AttachUrl)) | 
					
						
							|  |  |  |  |                 //{ | 
					
						
							|  |  |  |  |                 //    Alert.ShowInTop("请上传附件!", MessageBoxIcon.Warning); | 
					
						
							|  |  |  |  |                 //    return; | 
					
						
							|  |  |  |  |                 //} | 
					
						
							|  |  |  |  |                 var oldDayInput = Funs.DB.QuantityManagement_DayInput.Where(u => u.DayInputId == this.DayInputId).FirstOrDefault(); | 
					
						
							|  |  |  |  |                 if (oldDayInput == null) | 
					
						
							|  |  |  |  |                 { | 
					
						
							|  |  |  |  |                     newDayInput.CompileMan = this.CurrUser.UserId; | 
					
						
							|  |  |  |  |                     newDayInput.CompileDate = DateTime.Now; | 
					
						
							|  |  |  |  |                     BLL.DayInputService.AddDayInput(newDayInput); | 
					
						
							|  |  |  |  |                 } | 
					
						
							|  |  |  |  |                 else | 
					
						
							|  |  |  |  |                 { | 
					
						
							|  |  |  |  |                     newDayInput.CompileMan = oldDayInput.CompileMan; | 
					
						
							|  |  |  |  |                     newDayInput.CompileDate = oldDayInput.CompileDate; | 
					
						
							|  |  |  |  |                     BLL.DayInputService.UpdateDayInput(newDayInput); | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |                 } | 
					
						
							|  |  |  |  |             } | 
					
						
							|  |  |  |  |             ShowNotify("保存成功!", MessageBoxIcon.Success); | 
					
						
							|  |  |  |  |             PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference()); | 
					
						
							|  |  |  |  |         } | 
					
						
							|  |  |  |  |         #endregion | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |         #region 获取按钮权限 | 
					
						
							|  |  |  |  |         /// <summary> | 
					
						
							|  |  |  |  |         /// 获取按钮权限 | 
					
						
							|  |  |  |  |         /// </summary> | 
					
						
							|  |  |  |  |         /// <param name="button"></param> | 
					
						
							|  |  |  |  |         /// <returns></returns> | 
					
						
							|  |  |  |  |         private void GetButtonPower() | 
					
						
							|  |  |  |  |         { | 
					
						
							|  |  |  |  |             if (Request.Params["value"] == "0") | 
					
						
							|  |  |  |  |             { | 
					
						
							|  |  |  |  |                 return; | 
					
						
							|  |  |  |  |             } | 
					
						
							|  |  |  |  |             var buttonList = BLL.CommonService.GetAllButtonList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, BLL.Const.DayInputMenuId); | 
					
						
							|  |  |  |  |             if (buttonList.Count() > 0) | 
					
						
							|  |  |  |  |             { | 
					
						
							|  |  |  |  |                 if (buttonList.Contains(BLL.Const.BtnSave)) | 
					
						
							|  |  |  |  |                 { | 
					
						
							|  |  |  |  |                     this.btnSave.Hidden = false; | 
					
						
							|  |  |  |  |                 } | 
					
						
							|  |  |  |  |             } | 
					
						
							|  |  |  |  |         } | 
					
						
							|  |  |  |  |         #endregion | 
					
						
							| 
									
										
										
										
											2025-03-05 16:48:17 +08:00
										 |  |  |  | 
 | 
					
						
							|  |  |  |  |         #region 附件上传 | 
					
						
							|  |  |  |  |         /// <summary> | 
					
						
							|  |  |  |  |         /// 附件上传 | 
					
						
							|  |  |  |  |         /// </summary> | 
					
						
							|  |  |  |  |         /// <param name="sender"></param> | 
					
						
							|  |  |  |  |         /// <param name="e"></param> | 
					
						
							|  |  |  |  |         protected void btnAttach_Click(object sender, EventArgs e) | 
					
						
							|  |  |  |  |         { | 
					
						
							|  |  |  |  |             if (string.IsNullOrEmpty(this.hdDayInputId.Text))   //新增记录 | 
					
						
							|  |  |  |  |             { | 
					
						
							|  |  |  |  |                 this.hdDayInputId.Text = SQLHelper.GetNewID(); | 
					
						
							|  |  |  |  |             } | 
					
						
							|  |  |  |  |             PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("../../AttachFile/webuploader.aspx?type=0&toKeyId={0}&path=FileUpload/JDGL/DayInput&menuId={1}", this.hdDayInputId.Text, BLL.Const.DayInputMenuId))); | 
					
						
							|  |  |  |  |         } | 
					
						
							|  |  |  |  |         #endregion | 
					
						
							| 
									
										
										
										
											2025-02-12 09:27:47 +08:00
										 |  |  |  |     } | 
					
						
							|  |  |  |  | } |