string Details_SelectEmployee(Int64 ID) { this.mObj.pDr["EmployeeID_SalesPerson"] = ID; System.Text.StringBuilder Sb_Js = new System.Text.StringBuilder(); DataTable Dt = Do_Methods_Query.GetQuery("uvw_Employee", "", "EmployeeID = " + ID.ToString()); if (Dt.Rows.Count > 0) { this.Lbl_SalesPerson.Text = (string)Do_Methods.IsNull(Dt.Rows[0]["EmployeeCodeName"], ""); Layer01_Methods_Web.Eval_AppendJs(this.Server, ref Sb_Js, this.Lbl_SalesPerson.ClientID, "innerHTML", this.Lbl_SalesPerson.Text); } return(Sb_Js.ToString()); }
string Details_TaxCode() { System.Text.StringBuilder Sb_Js = new System.Text.StringBuilder(); Int64 LookupTaxCodeID = 0; try { LookupTaxCodeID = Convert.ToInt64(this.Cbo_TaxCode.SelectedValue); } catch { } DataTable Dt = Do_Methods_Query.GetQuery("LookupTaxCode", "", "LookupTaxCodeID = " + LookupTaxCodeID); if (Dt.Rows.Count > 0) { DataRow Dr = Dt.Rows[0]; Layer01_Methods_Web.Eval_AppendJs(this.Server, ref Sb_Js, this.Lbl_PST_Value.ClientID, "innerHTML", Strings.Format(Do_Methods.IsNull(Dr["PST_Value"], 0), "#,##0.00")); Layer01_Methods_Web.Eval_AppendJs(this.Server, ref Sb_Js, this.Lbl_GST_Value.ClientID, "innerHTML", Strings.Format(Do_Methods.IsNull(Dr["GST_Value"], 0), "#,##0.00")); Layer01_Methods_Web.Eval_AppendJs(this.Server, ref Sb_Js, this.Lbl_HST_Value.ClientID, "innerHTML", Strings.Format(Do_Methods.IsNull(Dr["HST_Value"], 0), "#,##0.00")); } return(Sb_Js.ToString()); }
void EOCb_Txt_Changed_Execute(object sender, EO.Web.CallbackEventArgs e) { System.Text.StringBuilder Sb_Js = new System.Text.StringBuilder(); if (e.Parameter == this.Txt_Phone.ID) { this.Details_FormatPhoneNo(ref this.Txt_Phone); Layer01_Methods_Web.Eval_AppendJs(this.Server, ref Sb_Js, this.Txt_Phone.ClientID, "value", this.Txt_Phone.Text); } else if (e.Parameter == this.Txt_Mobile.ID) { this.Details_FormatPhoneNo(ref this.Txt_Mobile); Layer01_Methods_Web.Eval_AppendJs(this.Server, ref Sb_Js, this.Txt_Mobile.ClientID, "value", this.Txt_Mobile.Text); } else if (e.Parameter == this.Txt_Fax.ID) { this.Details_FormatPhoneNo(ref this.Txt_Fax); Layer01_Methods_Web.Eval_AppendJs(this.Server, ref Sb_Js, this.Txt_Fax.ClientID, "value", this.Txt_Fax.Text); } e.Data = Sb_Js.ToString(); }
void SetupPage_CssClass(ref Control C, ref System.Text.StringBuilder Sb) { WebControl Wc = null; if (C is WebControl) { Wc = (WebControl)C; Layer01_Methods_Web.Eval_AppendJs(this.Server, ref Sb, Wc.ClientID, "class", Wc.CssClass); foreach (Control Ic in C.Controls) { Control Inner_Ic = Ic; this.SetupPage_CssClass(ref Inner_Ic, ref Sb); } } else { foreach (Control Ic in C.Controls) { Control Inner_Ic = Ic; this.SetupPage_CssClass(ref Inner_Ic, ref Sb); } return; } }