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); } }
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); } }
public string SalaryTaxesUpdate(T_HR_SALARYTAXES obj) { using (SalaryTaxesBLL bll = new SalaryTaxesBLL()) { return bll.SalaryTaxesUpdate(obj); } }