示例#1
0
 void client_CheckSalaryTaxesCompleted(object sender, CheckSalaryTaxesCompletedEventArgs e)
 {
     if (e.Error == null)
     {
         if (e.Result)
         {
             T_HR_SALARYTAXES taxes = new T_HR_SALARYTAXES();
             taxes.SALARYTAXESID       = Guid.NewGuid().ToString();
             taxes.TAXESRATE           = Convert.ToDecimal(txtTaxesRate.Text);
             taxes.TAXESSUM            = Convert.ToDecimal(txtTaxessum.Value);
             taxes.MINITAXESSUM        = Convert.ToDecimal(txtMinTaxessum.Value);
             taxes.CALCULATEDEDUCT     = Convert.ToDecimal(txtCalculateDeduct.Text);
             taxes.T_HR_SALARYSOLUTION = new T_HR_SALARYSOLUTION();
             taxes.T_HR_SALARYSOLUTION.SALARYSOLUTIONID = savesid;
             client.SalaryTaxesAddAsync(taxes);
         }
         else
         {
             ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("CHECKTAXES"),
                                            Utility.GetResourceStr("CONFIRM"), MessageIcon.Error);
             //Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("CHECKTAXES"));
         }
     }
     else
     {
         ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("CONFIRM"), MessageIcon.Error);
     }
 }
示例#2
0
        void client_CheckSalaryTaxesCompleted(object sender, CheckSalaryTaxesCompletedEventArgs e)
        {
            if (e.Error == null)
            {
                if (e.Result)
                {
                    T_HR_SALARYTAXES taxes = new T_HR_SALARYTAXES();
                    taxes.SALARYTAXESID = Guid.NewGuid().ToString();
                    taxes.TAXESRATE = Convert.ToDecimal(txtTaxesRate.Text);
                    taxes.TAXESSUM = Convert.ToDecimal(txtTaxessum.Value);
                    taxes.MINITAXESSUM = Convert.ToDecimal(txtMinTaxessum.Value);
                    taxes.CALCULATEDEDUCT = Convert.ToDecimal(txtCalculateDeduct.Text);
                    taxes.T_HR_SALARYSOLUTION = new T_HR_SALARYSOLUTION();
                    taxes.T_HR_SALARYSOLUTION.SALARYSOLUTIONID = savesid;
                    client.SalaryTaxesAddAsync(taxes);
                }
                else
                {
                    ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("CHECKTAXES"),
Utility.GetResourceStr("CONFIRM"), MessageIcon.Error);
                    //Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("CHECKTAXES"));
                }
            }
            else
            {
                ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("ERROR"),Utility.GetResourceStr("CONFIRM"), MessageIcon.Error);
            }

        }
示例#3
0
 public string SalaryTaxesUpdate(T_HR_SALARYTAXES obj)
 {
     using (SalaryTaxesBLL bll = new SalaryTaxesBLL())
     {
         return bll.SalaryTaxesUpdate(obj);
     }
 }