فهرست منبع

班次配置编辑 账务日期 错误

chenxy 5 سال پیش
والد
کامیت
704f3759cf
2فایلهای تغییر یافته به همراه13 افزوده شده و 0 حذف شده
  1. 1 0
      DK.Client/PCModule/F_PC_0401.cs
  2. 12 0
      DK.Client/PCModule/F_PC_0402.cs

+ 1 - 0
DK.Client/PCModule/F_PC_0401.cs

@@ -231,6 +231,7 @@ namespace Dongke.IBOSS.PRD.Client.PCModule
                     frmPC0402.UserCode = this.dgvClassesSet.CurrentRow.Cells["UserCode"].Value.ToString();
                     frmPC0402.UserName1 = this.dgvClassesSet.CurrentRow.Cells["userName"].Value.ToString();
                     frmPC0402.Remark = this.dgvClassesSet.CurrentRow.Cells["Remarks"].Value.ToString();
+                    frmPC0402.AccountDate = Convert.ToDateTime(this.dgvClassesSet.CurrentRow.Cells["AccountDate"].Value);
                     DialogResult dialogresult = frmPC0402.ShowDialog();
                     if (dialogresult.Equals(DialogResult.OK))
                     {

+ 12 - 0
DK.Client/PCModule/F_PC_0402.cs

@@ -99,6 +99,14 @@ namespace Dongke.IBOSS.PRD.Client.PCModule
             set { _userCode = value; }
         }
 
+        /// <summary>
+        /// 编辑时账务日期
+        /// </summary>
+        public DateTime? AccountDate
+        {
+            get;
+            set;
+        }
         #endregion
 
         #region 构造函数
@@ -150,6 +158,10 @@ namespace Dongke.IBOSS.PRD.Client.PCModule
                     this.dkUserInfo.UserName = this._userName;
                     this.dkUserInfo.UserCode = this._userCode;
                     BindUserJobs();
+                    if (this.AccountDate.HasValue)
+                    {
+                        this.dtpAccountDate.Value = this.AccountDate.Value;
+                    }
                     DataSet result = (DataSet)DoAsync(() =>
                     {
                         return PCModuleProxy.Service.SearchClassesDetail(this._classesSettingID);