protected bool CreateChange() { lblMessage.Text = "OK.."; if (!DataOk()) { return(false); } if (pay == null) { lblMessage.Text = "New..."; pay = new Payment(); UnloadData(pay); ctx.Add(pay); } else { lblMessage.Text = "Edit..."; pay = CntAriCli.GetPayment(paymentId, ctx); UnloadData(pay); } ctx.SaveChanges(); // update payments in related ticket CntAriCli.UpdateTicketPayments(pay.Ticket, ctx); lblMessage.Text = "Final create..."; return(true); }
protected void Page_Init(object sender, EventArgs e) { ctx = new AriClinicContext("AriClinicContext"); // security control, it must be a user logged if (Session["User"] == null) { Response.Redirect("Default.aspx"); } else { user = (User)Session["User"]; user = CntAriCli.GetUser(user.UserId, ctx); Process proc = (from p in ctx.Processes where p.Code == "visitreason" select p).FirstOrDefault <Process>(); per = CntAriCli.GetPermission(user.UserGroup, proc, ctx); btnAccept.Visible = per.Modify; } // if (Request.QueryString["VisitReasonId"] != null) { visitReasonId = Int32.Parse(Request.QueryString["VisitReasonId"]); visitReason = CntAriCli.GetVisitReason(visitReasonId, ctx); LoadData(visitReason); } }
protected void Page_Init(object sender, EventArgs e) { ctx = new AriClinicContext("AriClinicContext"); // security control, it must be a user logged if (Session["User"] == null) { Response.Redirect("Default.aspx"); } else { user = (User)Session["User"]; user = CntAriCli.GetUser(user.UserId, ctx); Process proc = (from p in ctx.Processes where p.Code == "examinationassigned" select p).FirstOrDefault <Process>(); per = CntAriCli.GetPermission(user.UserGroup, proc, ctx); btnAccept.Visible = per.Modify; } // if (Request.QueryString["WithoutGlassesId"] != null) { id = Int32.Parse(Request.QueryString["WithoutGlassesId"]); withoutGlasses = CntAriCli.GetWithoutGlassesTest(id, ctx); refractometry = withoutGlasses.Refractometry; LoadData(withoutGlasses); } if (Request.QueryString["RefractometryId"] != null) { id = int.Parse(Request.QueryString["RefractometryId"]); refractometry = (Refractometry)CntAriCli.GetExaminationAssigned(id, ctx); } }
protected void RadAjaxManager1_AjaxRequest(object sender, AjaxRequestEventArgs e) { RadGrid1.Rebind(); if (e.Argument == "new") { RadGrid1.Rebind(); RadGrid1.CurrentPageIndex = RadGrid1.PageCount - 1; } if (e.Argument == "yes") { if (Session["DeleteId"] != null) { try { anestheticServiceNoteId = (int)Session["DeleteId"]; AnestheticServiceNote asn = CntAriCli.GetAnestheticServiceNote(anestheticServiceNoteId, ctx); CntAriCli.DeleteAnestheticServiceNote(asn, ctx); RadGrid1.Rebind(); Session["DeleteId"] = null; } catch (Exception ex) { Session["Exception"] = ex; string command = String.Format("showDialog('Error','{0}','error',null, 0, 0)" , Resources.GeneralResource.DeleteRecordFail); RadAjaxManager1.ResponseScripts.Add(command); } } } }
protected void RadGrid1_ItemCommand(object sender, Telerik.Web.UI.GridCommandEventArgs e) { // weonly process commands with a datasource (our image buttons) if (e.CommandSource == null) { return; } string typeOfControl = e.CommandSource.GetType().ToString(); if (typeOfControl.Equals("System.Web.UI.WebControls.ImageButton")) { int id = 0; ImageButton imgb = (ImageButton)e.CommandSource; if (imgb.ID != "New" && imgb.ID != "Exit") { id = (int)e.Item.OwnerTableView.DataKeyValues[e.Item.ItemIndex][e.Item.OwnerTableView.DataKeyNames[0]]; } switch (imgb.ID) { case "Select": break; case "Edit": break; case "Delete": Professional cus = CntAriCli.GetProfessional(id, ctx); ctx.Delete(cus); ctx.SaveChanges(); RefreshGrid(); break; } } }
/// <summary> /// As its name suggest if there isn't an object /// it'll create it. It exists modify it. /// </summary> /// <returns></returns> protected bool CreateChange() { if (!DataOk()) { return(false); } if (patientId == 0) { pat = new Patient(); UnloadData(pat); ctx.Add(pat); } else { pat = CntAriCli.GetPatient(patientId, ctx); UnloadData(pat); } ctx.SaveChanges(); // control possible request IList <Request> lr = CntAriCli.GetPossibleAssociateRequest(pat, ctx); if (lr.Count() > 0) { withRequests = true; Session["Requests"] = lr; Session["Patient"] = pat; string mes = String.Format("Hay {0} solicitudes no asociadas que podrían ser de este paciente. ¿Desea asociarlas?", lr.Count()); RadWindowManager1.RadConfirm(mes, "associateRequest", null, null, null, "SOLICITUDES"); } return(true); }
protected void UnloadData(Patient pat) { pat.Name = txtName.Text; pat.Surname1 = txtSurname1.Text; pat.Surname2 = txtSurname2.Text; pat.FullName = String.Format("{0} {1}, {2}", pat.Surname1, pat.Surname2, pat.Name); pat.Sex = rdcbSex.SelectedValue; if (rdcbProcedencia.SelectedValue != "") { pat.Source = CntAriCli.GetSource(int.Parse(rdcbProcedencia.SelectedValue), ctx); } if (rdcbClinic.SelectedValue != "") { pat.Clinic = CntAriCli.GetClinic(int.Parse(rdcbClinic.SelectedValue), ctx); } if (rddpBornDate.SelectedDate != null) { pat.BornDate = (DateTime)rddpBornDate.SelectedDate; } if (pat.Customer == null) { CreateAssociatedCustomer(pat, ctx); } pat.InsuranceInformation = CntAriCli.GetInsuranceInformation(pat, ctx); txtInsuranceInformation.Text = pat.InsuranceInformation; pat.Customer.VATIN = txtVATIN.Text; pat.Comments = txtComments.Text; CntAriCli.UpdateCustomerRelatedData(pat, ctx); pat.OftId = int.Parse(txtFrn.Text); if (rdtOpenDate.SelectedDate != null) { pat.OpenDate = (DateTime)rdtOpenDate.SelectedDate; } //pat.LastUpdate = DateTime.Now; }
protected bool DataOk() { string command = ""; if (rdpProcedureDate.SelectedDate == null) { command = String.Format("showDialog('{0}','{1}','warning',null,0,0)" , Resources.GeneralResource.Warning , Resources.GeneralResource.DateNeeded); RadAjaxManager1.ResponseScripts.Add(command); return(false); } if (rdcProcedure.SelectedValue == "") { command = String.Format("showDialog('{0}','{1}','warning',null,0,0)" , Resources.GeneralResource.Warning , Resources.GeneralResource.ProcedureNeeded); RadAjaxManager1.ResponseScripts.Add(command); return(false); } if (rdcPatient.SelectedValue == "") { command = String.Format("showDialog('{0}','{1}','warning',null,0,0)" , Resources.GeneralResource.Warning , Resources.GeneralResource.PatientNeeded); RadAjaxManager1.ResponseScripts.Add(command); return(false); } // procedure = CntAriCli.GetProcedure(int.Parse(rdcProcedure.SelectedValue), ctx); return(true); }
private void HealthcareCompanyData(AriClinicContext ctx1) { HealthcareCompany healthcare = CntAriCli.GetHealthCompany(ctx1); companyname = healthcare.Name; foreach (Address item in healthcare.Addresses) { if (item.Type == "Primary") { companyaddress = item; } } foreach (Telephone item in healthcare.Telephones) { if (item.Type == "Primary") { companytelf = item; } } foreach (Email item in healthcare.Emails) { if (item.Type == "Primary") { companyemail = item; } } companynif = healthcare.VATIN; }
protected void RefreshGrid(bool rebind) { if (pat == null && cus == null) { RadGrid1.DataSource = ctx.GeneralPayments; } else { if (serviceNote != null) { RadAjaxManager1.ResponseScripts.Add("parent.updateTotal()"); RadGrid1.DataSource = serviceNote.GeneralPayments; } else { RadGrid1.DataSource = CntAriCli.GetGeneralPayments(cus, ctx); } } if (serviceNote != null) { RadAjaxManager1.ResponseScripts.Add("parent.updateTotal()"); RadGrid1.DataSource = serviceNote.GeneralPayments; } if (rebind) { RadGrid1.Rebind(); } }
protected bool CreateChange() { if (!DataOk()) { return(false); } if (mot == null) { mot = new MotAppend(); mot.OphthalmologicVisit = oVisit; UnloadData(mot); ctx.Add(mot); } else { mot = CntAriCli.GetMotAppend(mot.Id, ctx); UnloadData(mot); } ctx.SaveChanges(); RadAjaxManager1.ResponseScripts.Add(String.Format("showDialog('{0}','{1}','success',null,0,0)" , Resources.GeneralResource.Success , Resources.GeneralResource.CorrectlyStored)); Response.Redirect(String.Format("MotAppendForm.aspx?MotAppendId={0}", mot.Id)); return(true); }
protected void RadGrid1_ItemCommand(object sender, Telerik.Web.UI.GridCommandEventArgs e) { // weonly process commands with a datasource (our image buttons) if (e.CommandSource == null) { return; } string typeOfControl = e.CommandSource.GetType().ToString(); if (typeOfControl.Equals("System.Web.UI.WebControls.ImageButton")) { int id = 0; ImageButton imgb = (ImageButton)e.CommandSource; if (imgb.ID != "New" && imgb.ID != "Exit") { id = (int)e.Item.OwnerTableView.DataKeyValues[e.Item.ItemIndex][e.Item.OwnerTableView.DataKeyNames[0]]; } switch (imgb.ID) { case "Select": break; case "Edit": break; case "Delete": pay = (from p in ctx.GeneralPayments where p.GeneralPaymentId == id select p).FirstOrDefault <GeneralPayment>(); CntAriCli.GeneralPaymentDelete(pay, ctx); RefreshGrid(true); break; } } }
protected void Page_Init(object sender, EventArgs e) { ctx = new AriClinicContext("AriClinicContext"); // security control, it must be a user logged if (Session["User"] == null) { Response.Redirect("Default.aspx"); } else { user = CntAriCli.GetUser((Session["User"] as User).UserId, ctx); Process proc = (from p in ctx.Processes where p.Code == "scat" select p).FirstOrDefault <Process>(); per = CntAriCli.GetPermission(user.UserGroup, proc, ctx); } // cheks if is call from another form if (Request.QueryString["Type"] != null) { type = Request.QueryString["Type"]; } // read patient information if (Request.QueryString["CustomerId"] != null) { customerId = Int32.Parse(Request.QueryString["CustomerId"]); cus = CntAriCli.GetCustomer(customerId, ctx); lblTitle.Text = String.Format("Historial administrativo: {0}", cus.FullName); this.Title = String.Format("Historial administrativo: {0}", cus.FullName); } }
protected void Page_Init(object sender, EventArgs e) { ctx = new AriClinicContext("AriClinicContext"); // security control, it must be a user logged if (Session["User"] == null) { Response.Redirect("Default.aspx"); } else { user = CntAriCli.GetUser((Session["User"] as User).UserId, ctx); Process proc = (from p in ctx.Processes where p.Code == "usergroup" select p).FirstOrDefault <Process>(); per = CntAriCli.GetPermission(user.UserGroup, proc, ctx); btnAccept.Visible = per.Modify; } // if (Request.QueryString["UserGroupId"] != null) { userGroupId = Int32.Parse(Request.QueryString["UserGroupId"]); UserGroup ug = (from usg in ctx.UserGroups where usg.UserGroupId == userGroupId select usg).FirstOrDefault <UserGroup>(); LoadData(ug); } }
protected void rdcInsuranceService_ItemsRequested(object sender, RadComboBoxItemsRequestedEventArgs e) { // control insurance box if (e.Text == "") { return; } // Insurance ins = CntAriCli.GetInsurance(int.Parse(rdcbInsurance.SelectedValue), ctx); if (ins != null) { RadComboBox combo = (RadComboBox)sender; combo.Items.Clear(); var rs = from x in ctx.InsuranceServices where x.Insurance.InsuranceId == ins.InsuranceId && x.Service.Name.Contains(e.Text) select x; foreach (InsuranceService inss in rs) { combo.Items.Add(new RadComboBoxItem(inss.Service.Name, inss.InsuranceServiceId.ToString())); } } }
protected bool DataOk() { // check date if (rddpInvoiceDate.SelectedDate == null) { lblMessage.Text = Resources.GeneralResource.DateNeeded; return(false); } // we need the professional in order to do another test if (txtProfessionalId.Text == "") { lblMessage.Text = Resources.GeneralResource.ProfessionalNeeded; return(false); } prof = CntAriCli.GetProfessional(int.Parse(txtProfessionalId.Text), ctx); if (prof == null) { lblMessage.Text = Resources.GeneralResource.ProfessionalNeeded; return(false); } // check if there're invoices with older date if (inv == null) { if (!CntAriCli.CorrectProfessionalInvoiceDate((DateTime)rddpInvoiceDate.SelectedDate, prof)) { lblMessage.Text = Resources.GeneralResource.IncorrectInvoiceDate; return(false); } } return(true); }
protected void Page_Init(object sender, EventArgs e) { ctx = new AriClinicContext("AriClinicContext"); // security control, it must be a user logged if (Session["User"] == null) { Response.Redirect("Default.aspx"); } else { user = CntAriCli.GetUser((Session["User"] as User).UserId, ctx); Process proc = (from p in ctx.Processes where p.Code == "Estimate" select p).FirstOrDefault <Process>(); per = CntAriCli.GetPermission(user.UserGroup, proc, ctx); btnAccept.Visible = per.Modify; } // LoadComboInsurance(); // if (Request.QueryString["EstimateId"] != null) { estId = Int32.Parse(Request.QueryString["EstimateId"]); est = CntAriCli.GetEstimate(estId, ctx); } // if (Request.QueryString["EstimateLineId"] != null) { estlId = Int32.Parse(Request.QueryString["EstimateLineId"]); estl = CntAriCli.GetEstimateLine(estlId, ctx); LoadData(estl); } }
protected void UnloadData(ProfessionalInvoice inv) { //inv.Serial = txtInvoiceSerial.Text; inv.Year = Int32.Parse(txtYear.Text); inv.Serial = txtInvoiceSerial.Text; ProfessionalId = Int32.Parse(txtProfessionalId.Text); inv.Professional = CntAriCli.GetProfessional(ProfessionalId, ctx); inv.InvoiceDate = (DateTime)rddpInvoiceDate.SelectedDate; inv.Amount = CntAriCli.GetProfessionalInvoiceTotal(inv); if (inv.Professional.TaxWithholdingType == null) { inv.TaxWithHoldingPercentage = 0; } else { inv.TaxWithHoldingPercentage = inv.Professional.TaxWithholdingType.Percentage / 100; } if (txtInvoiceNumber.Text == "") { try { inv.InvoiceNumber = CntAriCli.GetNextProfessionalInvoiceNumber(inv.Professional, inv.Year, ctx); } catch (NullReferenceException nre) { inv.InvoiceNumber = 1; } } inv.InvoiceKey = String.Format("{0}-{1:000000}-{2}", inv.Year, inv.InvoiceNumber, inv.Serial); }
protected void LoadData(Patient pat) { txtPatientId.Text = pat.PersonId.ToString(); txtName.Text = pat.Name; txtSurname1.Text = pat.Surname1; txtSurname2.Text = pat.Surname2; if (String.Format("{0:dd/MM/yy}", pat.BornDate) != "01/01/01") { rddpBornDate.SelectedDate = pat.BornDate; } txtAge.Text = CntAriCli.CalulatedAge(pat.BornDate).ToString(); txtLastUpdate.Text = CntAriCli.DateNullFormat(pat.LastUpdate); LoadSexCombo(pat); LoadSourceCombo(pat); LoadClinicCombo(pat); txtComments.Text = pat.Comments; if (pat.Customer != null) { txtVATIN.Text = pat.Customer.VATIN; } txtFrn.Text = String.Format("{0:0}", pat.OftId); txtInsuranceInformation.Text = pat.InsuranceInformation; if (!CntAriCli.OaDateNull(pat.OpenDate)) { rdtOpenDate.SelectedDate = pat.OpenDate; } }
private static void FixAnestheticNotes(AriClinicContext ctx) { foreach (AnestheticServiceNote asn in ctx.AnestheticServiceNotes) { CntAriCli.CheckAnestheticServiceNoteTickets(asn, ctx); } }
protected void RadAjaxManager1_AjaxRequest(object sender, AjaxRequestEventArgs e) { switch (e.Argument) { case "address": UscAddressGrid1.RefreshGrid(true); break; case "telephone": UscTelephoneGrid1.RefreshGrid(true); break; case "email": UscEmailGrid1.RefreshGrid(true); break; case "request": IList <Request> lr = (IList <Request>)Session["Requests"]; pat = (Patient)Session["Patient"]; CntAriCli.SetRequestAssociation(pat, lr, ctx); Session["Requests"] = null; Session["Patient"] = null; string command = String.Format("PatientRecord({0});", pat.PersonId); RadAjaxManager1.ResponseScripts.Add(command); break; } }
protected void btnAccept_Click(object sender, ImageClickEventArgs e) { if (template != null) { Patient patient = CntAriCli.GetPatient(int.Parse(rdcPatient.SelectedValue), ctx); Professional professional = CntAriCli.GetProfessional(int.Parse(rdcProfessional.SelectedValue), ctx); IList <TemplateView> ltpw = new List <TemplateView>(); TemplateView tpvw = new TemplateView(); tpvw.Name = template.Name; string patientName = ""; if (patient != null) { patientName = String.Format("{0} {1}, {2}", patient.Surname1, patient.Surname2, patient.Name); } string professionalName = ""; if (professional != null) { professionalName = professional.FullName; } tpvw.Content = String.Format(template.Content, patientName, professionalName, txtCampo1.Text, txtCampo2.Text, txtCampo3.Text); ltpw.Add(tpvw); RptTemplate rpt = new RptTemplate(ltpw); ReportViewer1.Report = rpt; } }
protected void Page_Init(object sender, EventArgs e) { ctx = new AriClinicContext("AriClinicContext"); // security control, it must be a user logged if (Session["User"] == null) { Response.Redirect("Default.aspx"); } else { user = CntAriCli.GetUser((Session["User"] as User).UserId, ctx); Process proc = (from p in ctx.Processes where p.Code == "scat" select p).FirstOrDefault <Process>(); per = CntAriCli.GetPermission(user.UserGroup, proc, ctx); } //cheks if is call from customer form tabs if (type == "InTab") { HtmlControl tt = (HtmlControl)this.FindControl("TitleArea"); tt.Attributes["class"] = "ghost"; // hide patient column RadGrid1.Columns.FindByDataField("Patient.FullName").Visible = false; } // cheks if is call from another form if (Request.QueryString["Type"] != null) { type = Request.QueryString["Type"]; } // translate filters CntWeb.TranslateRadGridFilters(RadGrid1); }
private void iniChart(AriClinicContext ctx1) { ctx1 = new AriClinicContext("AriClinicContext"); IList <Professional> prof = CntAriCli.GetSurgeonTickets(fromDate, toDate, ctx1); chart1.PlotArea.XAxis.AutoScale = true; chart1.PlotArea.XAxis.Items.Clear(); chart1.AutoLayout = true; chart1.ChartTitle.TextBlock.Visible = false;//.Text = "Servicios por profesional."; chart1.PlotArea.Appearance.FillStyle.FillType = Telerik.Reporting.Charting.Styles.FillType.Solid; chart1.PlotArea.Appearance.FillStyle.MainColor = Color.Transparent; ChartSeries chartSeries1 = new ChartSeries(); chartSeries1.Type = ChartSeriesType.Pie; chartSeries1.Appearance.LegendDisplayMode = ChartSeriesLegendDisplayMode.ItemLabels; foreach (Professional item in prof) { ChartSeriesItem serieItem = new ChartSeriesItem(); int num = CntAriCli.GetTicketsByCirujano(fromDate, toDate, item.PersonId.ToString(), ctx1).Count; if (num > 0) { serieItem.YValue = num; serieItem.Name = item.FullName; serieItem.Label.TextBlock.Text = num.ToString(); serieItem.Appearance.Exploded = true; chartSeries1.Items.Add(serieItem); } } chart1.Series.Clear(); chart1.Series.AddRange(new Telerik.Reporting.Charting.ChartSeries[] { chartSeries1 }); }
protected void Page_Init(object sender, EventArgs e) { ctx = new AriClinicContext("AriClinicContext"); // security control, it must be a user logged if (Session["User"] == null) { Response.Redirect("Default.aspx"); } else { user = CntAriCli.GetUser((Session["User"] as User).UserId, ctx); Process proc = (from p in ctx.Processes where p.Code == "professional" select p).FirstOrDefault <Process>(); per = CntAriCli.GetPermission(user.UserGroup, proc, ctx); } // cheks if is call from another form if (Request.QueryString["Type"] != null) { type = Request.QueryString["Type"]; } // if (Request.QueryString["CallNumber"] != null) { callNumber = int.Parse(Request.QueryString["CallNumber"]); } // translate filters CntWeb.TranslateRadGridFilters(RadGrid1); }
public RptPayments(DateTime fDate, DateTime tDate, int clinicId, AriClinicContext ctx) : this() { ctx = new AriClinicContext("AriClinicContext"); fromDate = fDate; toDate = tDate; this.DataSource = CntAriCli.GetPayments(fDate, tDate, clinicId, ctx); }
protected bool CreateChange() { if (!DataOk()) { return(false); } if (withoutGlasses == null) { withoutGlasses = new WithoutGlassesTest(); withoutGlasses.Refractometry = refractometry; UnloadData(withoutGlasses); ctx.Add(withoutGlasses); } else { withoutGlasses = CntAriCli.GetWithoutGlassesTest(withoutGlasses.Id, ctx); UnloadData(withoutGlasses); } ctx.SaveChanges(); RadAjaxManager1.ResponseScripts.Add(String.Format("showDialog('{0}','{1}','success',null,0,0)" , Resources.GeneralResource.Success , Resources.GeneralResource.CorrectlyStored)); Response.Redirect(String.Format("WithoutGlassesForm.aspx?WithoutGlassesId={0}", withoutGlasses.Id)); return(true); }
protected void UnloadData(Biometry bio) { bio.Patient = CntAriCli.GetPatient(int.Parse(rdcPatient.SelectedValue), ctx); bio.ExaminationDate = (DateTime)rdpExaminationDate.SelectedDate; bio.Examination = CntAriCli.GetExamination(int.Parse(rdcExamination.SelectedValue), ctx); if (visit != null) { bio.BaseVisit = visit; } bio.Formula = txtFormula.Text; if (txtLIOLeft.Value != null) { bio.LioLeftEye = (decimal)txtLIOLeft.Value; } if (txtLIORight.Value != null) { bio.LioRightEye = (decimal)txtLIORight.Value; } if (txtALXLeft.Value != null) { bio.AlxLeftEye = (decimal)txtALXLeft.Value; } if (txtALXRight.Value != null) { bio.AlxRightEye = (decimal)txtALXRight.Value; } bio.Comments = txtComments.Text; }
protected bool CreateChange() { if (!DataOk()) { return(false); } if (OpticalObjectiveExamination == null) { OpticalObjectiveExamination = new OpticalObjectiveExamination(); OpticalObjectiveExamination.Refractometry = refractometry; UnloadData(OpticalObjectiveExamination); ctx.Add(OpticalObjectiveExamination); } else { OpticalObjectiveExamination = CntAriCli.GetOpticalObjectiveExamination(OpticalObjectiveExamination.Id, ctx); UnloadData(OpticalObjectiveExamination); } ctx.SaveChanges(); RadAjaxManager1.ResponseScripts.Add(String.Format("showDialog('{0}','{1}','success',null,0,0)" , Resources.GeneralResource.Success , Resources.GeneralResource.CorrectlyStored)); Response.Redirect(String.Format("OpticalObjectiveExaminationForm.aspx?OpticalObjectiveExaminationId={0}", OpticalObjectiveExamination.Id)); return(true); }
protected bool DataOk() { if (rddpPaymentDate.SelectedDate == null) { lblMessage.Text = Resources.GeneralResource.DateNeeded; return(false); } if (rdcbPaymentMethod.SelectedValue == "") { lblMessage.Text = Resources.GeneralResource.PaymentMethodNeeded; return(false); } if (txtTicketId.Text == "") { lblMessage.Text = Resources.GeneralResource.TicketNeeded; return(false); } else { ticketId = Int32.Parse(txtTicketId.Text); tck = CntAriCli.GetTicket(ticketId, ctx); if (tck.ServiceNote != null) { lblMessage.Text = Resources.GeneralResource.PayInNote; return(false); } if (!CntAriCli.PaymentControl(tck, pay, Decimal.Parse(txtAmount.Text))) { lblMessage.Text = Resources.GeneralResource.TicketAmountExceeded; return(false); } } return(true); }