Beispiel #1
0
 void btnNew_Click(object sender, RoutedEventArgs e)
 {
     if (string.IsNullOrEmpty(txtTaxessum.Value.ToString().Trim()))
     {
         ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("STRINGNOTNULL", "TAXESSUM"),
                                        Utility.GetResourceStr("CONFIRM"), MessageIcon.Error);
         //Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("STRINGNOTNULL", "TAXESSUM"));
         RefreshUI(RefreshedTypes.ProgressBar);
         return;
     }
     if (string.IsNullOrEmpty(txtMinTaxessum.Value.ToString().Trim()))
     {
         ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("STRINGNOTNULL", "TAXESSUM"),
                                        Utility.GetResourceStr("CONFIRM"), MessageIcon.Error);
         //Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("STRINGNOTNULL", "TAXESSUM"));
         RefreshUI(RefreshedTypes.ProgressBar);
         return;
     }
     if (string.IsNullOrEmpty(txtTaxesRate.Text.Trim()))
     {
         ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("STRINGNOTNULL", "TAXESRATE"),
                                        Utility.GetResourceStr("CONFIRM"), MessageIcon.Error);
         //Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("STRINGNOTNULL", "TAXESRATE"));
         RefreshUI(RefreshedTypes.ProgressBar);
         return;
     }
     if (string.IsNullOrEmpty(txtCalculateDeduct.Text.Trim()))
     {
         ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("STRINGNOTNULL", "CALCULATEDEDUCT"),
                                        Utility.GetResourceStr("CONFIRM"), MessageIcon.Error);
         //Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("STRINGNOTNULL", "CALCULATEDEDUCT"));
         RefreshUI(RefreshedTypes.ProgressBar);
         return;
     }
     if (txtTaxessum.Value < txtMinTaxessum.Value)
     {
         ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("TAXESCOMPARE"),
                                        Utility.GetResourceStr("CONFIRM"), MessageIcon.Error);
         //Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("TAXESCOMPARE"));
         RefreshUI(RefreshedTypes.ProgressBar);
         return;
     }
     client.CheckSalaryTaxesAsync(savesid, Convert.ToDecimal(txtMinTaxessum.Value));
 }