private void buttonAddRecord_Click(object sender, EventArgs e) { if (!checkEmptyValue("municipality name", textBoxMunicipalityAdd.Text)) { return; } if (!checkEmptyValue("tax value", textBoxTaxAdd.Text)) { return; } WCF_Service.MunicipalityTax dataRequest = new WCF_Service.MunicipalityTax() { Municipality = textBoxMunicipalityAdd.Text, TaxType = comboBoxTaxTypes.SelectedValue.ToString().Trim(), ValidFrom = Convert.ToDateTime(labelValidFrom.Text), ValidTo = Convert.ToDateTime(labelValidTo.Text), Tax = Decimal.Parse(textBoxTaxAdd.Text) }; TaxManagementClient client = new TaxManagementClient(); WCF_Service.GeneralResponse resp = client.AddTaxRecord(dataRequest); client.Close(); toolStripStatusLabel.Text = resp.message; }
private void getTax_Click_Click(object sender, EventArgs e) { if (!checkEmptyValue("municipality name", textBoxMunicipality.Text)) { return; } string s = comboBoxTaxTypes.SelectedValue.ToString(); WCF_Service.MunicipalityTax req = new WCF_Service.MunicipalityTax(); req.Municipality = textBoxMunicipality.Text; req.ValidFrom = monthCalendar2.SelectionStart; TaxManagementClient client = new TaxManagementClient(); WCF_Service.MunicipalityTaxResponse resp = new WCF_Service.MunicipalityTaxResponse(); resp = client.GetTaxInfo(req); textBoxResult.Text = resp.Tax.ToString(); client.Close(); toolStripStatusLabel.Text = resp.Message; }
public System.Threading.Tasks.Task <WCF_Service.GeneralResponse> UpdateTaxRecordAsync(WCF_Service.MunicipalityTax tbl) { return(base.Channel.UpdateTaxRecordAsync(tbl)); }
public WCF_Service.GeneralResponse UpdateTaxRecord(WCF_Service.MunicipalityTax tbl) { return(base.Channel.UpdateTaxRecord(tbl)); }
public System.Threading.Tasks.Task <WCF_Service.MunicipalityTaxResponse> GetTaxInfoAsync(WCF_Service.MunicipalityTax req) { return(base.Channel.GetTaxInfoAsync(req)); }
public WCF_Service.MunicipalityTaxResponse GetTaxInfo(WCF_Service.MunicipalityTax req) { return(base.Channel.GetTaxInfo(req)); }