Пример #1
0
 void client_GetAreaAllowanceByIDCompleted(object sender, GetAreaAllowanceByIDCompletedEventArgs e)
 {
     if (e.Error != null && !string.IsNullOrEmpty(e.Error.Message))
     {
         Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr(e.Error.Message));
     }
     else
     {
         if (e.Result == null)
         {
             allowance = new T_HR_AREAALLOWANCE();
             allowance.AREAALLOWANCEID     = Guid.NewGuid().ToString();
             allowance.T_HR_AREADIFFERENCE = new T_HR_AREADIFFERENCE();
             allowance.T_HR_AREADIFFERENCE.AREADIFFERENCEID = areaID;
             allowance.CREATEUSERID = SMT.SAAS.Main.CurrentContext.Common.CurrentLoginUserInfo.EmployeeID;
             allowance.CREATEDATE   = System.DateTime.Now;
             FormType = FormTypes.New;
         }
         else
         {
             allowance = e.Result;
         }
         this.DataContext = allowance;
         BindCommbox();
     }
 }
Пример #2
0
 /// <summary>
 ///根据ID获取地区差异补贴
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 void client_GetAreaAllowanceByIDCompleted(object sender, GetAreaAllowanceByIDCompletedEventArgs e)
 {
     if (e.Error != null)
     {
         Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr(e.Error.Message));
     }
     else
     {
         allowance = e.Result;
     }
 }
Пример #3
0
        void AreaAllowanceForm_Loaded(object sender, RoutedEventArgs e)
        {
            if (string.IsNullOrEmpty(AllowancelID))
            {
                allowance = new T_HR_AREAALLOWANCE();
                allowance.AREAALLOWANCEID = Guid.NewGuid().ToString();
                allowance.T_HR_AREADIFFERENCE = new T_HR_AREADIFFERENCE();
                allowance.T_HR_AREADIFFERENCE.AREADIFFERENCEID = areaID;
                allowance.CREATEUSERID = SMT.SAAS.Main.CurrentContext.Common.CurrentLoginUserInfo.EmployeeID;
                allowance.CREATEDATE = System.DateTime.Now;

                //areacity.UPDATEDATE = System.DateTime.Now;
                //areacity.UPDATEUSERID = SMT.SAAS.Main.CurrentContext.Common.CurrentLoginUserInfo.EmployeeID;
                cbArea.IsEnabled = false;
                this.DataContext = allowance;
            }
            else
            {
                cbArea.IsEnabled = false;
                cbPostLevel.IsEnabled = false;
                client.GetAreaAllowanceByIDAsync(AllowancelID);
            }
        }
Пример #4
0
        void AreaAllowanceForm_Loaded(object sender, RoutedEventArgs e)
        {
            if (string.IsNullOrEmpty(AllowancelID))
            {
                allowance = new T_HR_AREAALLOWANCE();
                allowance.AREAALLOWANCEID     = Guid.NewGuid().ToString();
                allowance.T_HR_AREADIFFERENCE = new T_HR_AREADIFFERENCE();
                allowance.T_HR_AREADIFFERENCE.AREADIFFERENCEID = areaID;
                allowance.CREATEUSERID = SMT.SAAS.Main.CurrentContext.Common.CurrentLoginUserInfo.EmployeeID;
                allowance.CREATEDATE   = System.DateTime.Now;

                //areacity.UPDATEDATE = System.DateTime.Now;
                //areacity.UPDATEUSERID = SMT.SAAS.Main.CurrentContext.Common.CurrentLoginUserInfo.EmployeeID;
                cbArea.IsEnabled = false;
                this.DataContext = allowance;
            }
            else
            {
                cbArea.IsEnabled      = false;
                cbPostLevel.IsEnabled = false;
                client.GetAreaAllowanceByIDAsync(AllowancelID);
            }
        }
Пример #5
0
 public void AreaAllowanceUpdate(T_HR_AREAALLOWANCE obj)
 {
     using (AreaAllowanceBLL bll = new AreaAllowanceBLL())
     {
         bll.AreaAllowanceUpdate(obj);
     }
 }
Пример #6
0
 void client_GetAreaAllowanceByIDCompleted(object sender, GetAreaAllowanceByIDCompletedEventArgs e)
 {
     if (e.Error != null && !string.IsNullOrEmpty(e.Error.Message))
     {
         Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr(e.Error.Message));
     }
     else
     {
         if (e.Result == null)
         {
             allowance = new T_HR_AREAALLOWANCE();
             allowance.AREAALLOWANCEID = Guid.NewGuid().ToString();
             allowance.T_HR_AREADIFFERENCE = new T_HR_AREADIFFERENCE();
             allowance.T_HR_AREADIFFERENCE.AREADIFFERENCEID = areaID;
             allowance.CREATEUSERID = SMT.SAAS.Main.CurrentContext.Common.CurrentLoginUserInfo.EmployeeID;
             allowance.CREATEDATE = System.DateTime.Now;
             FormType = FormTypes.New;
         }
         else
         {
             allowance = e.Result;
         }
         this.DataContext = allowance;
         BindCommbox();
     }
 }
Пример #7
0
        /// <summary>
        ///根据ID获取地区差异补贴
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        void client_GetAreaAllowanceByIDCompleted(object sender, GetAreaAllowanceByIDCompletedEventArgs e)
        {

            if (e.Error != null)
            {
                Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr(e.Error.Message));
            }
            else
            {
                allowance = e.Result;
            }
        }