コード例 #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
ファイル: AreaAllowanceForm.xaml.cs プロジェクト: JuRogn/OA
        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
ファイル: SalaryService.svc.cs プロジェクト: fuhongliang/oa
 public void AreaAllowanceUpdate(T_HR_AREAALLOWANCE obj)
 {
     using (AreaAllowanceBLL bll = new AreaAllowanceBLL())
     {
         bll.AreaAllowanceUpdate(obj);
     }
 }
コード例 #6
0
ファイル: AreaAllowanceForm.xaml.cs プロジェクト: JuRogn/OA
 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
ファイル: AreaAllowance.xaml.cs プロジェクト: JuRogn/OA
        /// <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;
            }
        }