Пример #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_OA_AREAALLOWANCE();
             allowance.AREAALLOWANCEID     = Guid.NewGuid().ToString();
             allowance.T_OA_AREADIFFERENCE = new T_OA_AREADIFFERENCE();
             allowance.T_OA_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 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();
     }
 }
Пример #4
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;
            }
        }