protected void Page_Load(object sender, EventArgs e) { if (!X.IsAjaxRequest) { cmbVessel.Focus(); //cmbVessel.Focus(); labCarrierCode.Text = Request["carrier"]; // labCarrierText.Text = Request["cartext"]; ControlBinder.DateFormat(txtETA); ControlBinder.DateFormat(txtETD); ControlBinder.DateFormat(txtOnboard); ControlBinder.DateFormat(txtCY); ControlBinder.DateFormat(txtCFS); if (Request["vesselID"] == null) { cmbVessel.SelectedItem.Text = string.IsNullOrEmpty(Request["vstext"]) ? "" : Request["vstext"].ToUpper().ToString(); cmbVessel.Value = string.IsNullOrEmpty(Request["vessel"]) ? "" : Request["vessel"].ToString(); } else { cmbVessel.SelectedItem.Value = Request["vesselID"]; txtVoyageID.Text = Request["voyageID"]; } //cmbVessel.Text = Request["vstext"]; //cmbVessel.Text="MICHAEL"; } }
protected void Page_Load(object sender, EventArgs e) { if (!X.IsAjaxRequest) { if (!IsPostBack) { CurrentPageIndex = txtPageNum.Text.Trim() == "" ? 1 : Convert.ToInt32(txtPageNum.Text.Trim()); isOk = string.IsNullOrEmpty(Request["isok"]) ? 0 : Convert.ToInt32(Request["isok"]); if (isOk == 0) { btnOk.Visible = false; btnNew.Visible = true; } else { btnOk.Visible = true; btnNew.Visible = false; } ControlBinder.DateFormat(txtDate); ControlBinder.DateFormat(txtTo); txtDate.Focus(true); txtDate.Text = DateTime.Now.AddDays(-7).ToString("yyyy/MM/dd"); txtDate.RawText = DateTime.Now.AddDays(-7).ToString("yyyy/MM/dd"); DataBinder(); SetButtonStatus(); } } }
//protected static string sys = "AI"; //protected static string type = "DNCN"; protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { if (Request["sys"] != null) { hidsys.Text = Request["sys"]; if (hidsys.Text.ToUpper() == "SYS") { lblLoc.Visible = true; lblDest.Visible = false; } } if (Request["type"] != null) { hidtype.Text = Request["type"]; } ControlBinder.DateFormat(txtETDFrom); ControlBinder.DateFormat(txtETDTo); string date = DateTime.Now.Year.ToString() + "/" + DateTime.Now.Month.ToString().PadLeft(2, '0') + "/01"; txtETDFrom.RawText = date; txtETDFrom.Text = date; if (hidtype.Text == "SALES") { lblCNEE.Visible = true; lblSHPR.Visible = true; cmbShipperCode.Visible = true; cmbConsigneeCode.Visible = true; divSales.Style.Add("display", "none"); ControlBinder.CmbBinder(StoreSalesman, "SalesList", hidsys.Text.Substring(0, 1)); ControlBinder.CmbBinder(StoreLocation, "LocationList", hidsys.Text.Substring(0, 1)); } else if (hidtype.Text == "House") { lblSalesman.Visible = false; divSales.Style.Add("display", "none"); divSalesman.Style.Add("display", "none"); ControlBinder.CmbBinder(StoreSalesman, "SalesList", hidsys.Text.Substring(0, 1)); ControlBinder.CmbBinder(StoreLocation, "LocationList", hidsys.Text.Substring(0, 1)); } else if (hidtype.Text == "OP") { LblOP.Visible = true; lblSalesman.Visible = false; divSales.Style.Add("display", "none"); divSalesman.Style.Add("display", "none"); divOP.Style.Add("display", "block"); ControlBinder.CmbBinder(StoreSalesman, "SalesList", hidsys.Text.Substring(0, 1)); ControlBinder.CmbBinder(StoreLocation, "LocationList", hidsys.Text.Substring(0, 1)); ControlBinder.CmbBinder(StoreOP, "GetUserListByStat"); } else { lblSalesman.Visible = false; divSalesman.Style.Add("display", "none"); divSales.Style.Add("display", "none"); ControlBinder.CmbBinder(StoreLocation, "LocationList", hidsys.Text.Substring(0, 1)); } } }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { txtETDFrom.Focus(); ControlBinder.DateFormat(txtETDFrom); ControlBinder.DateFormat(txtETDTo); string date = DateTime.Now.Year.ToString() + "/" + DateTime.Now.Month.ToString().PadLeft(2, '0') + "/01"; txtETDFrom.RawText = date; txtETDFrom.Text = date; if (Request["Sys"] != null) { hidsys.Text = Request["Sys"]; } ComboboxBinder(); } if (hidsys.Text.StartsWith("A")) { lblHBL.Text = "HAWB"; lblMBL.Text = "MAWB"; lblVessel.Visible = false; txtVessel.Visible = false; lblVoyage.Visible = false; txtVoyage.Visible = false; lblContainer.Visible = false; txtContainer.Visible = false; } }
protected void Page_Load(object sender, EventArgs e) { if (!X.IsAjaxRequest) { ControlBinder.DateFormat(txtDate); } }
protected void Page_Load(object sender, EventArgs e) { txtMAWB.Focus(true); if (!X.IsAjaxRequest) { hidSeed.Text = string.IsNullOrEmpty(Request["seed"]) ? "" : Request["seed"]; ControlBinder.DateFormat(txtJob); ControlBinder.DateFormat(txtDepartDate); ControlBinder.DateFormat(txtArrivalDate); } }
protected void Page_Load(object sender, EventArgs e) { if (!X.IsAjaxRequest) { ControlBinder.DateFormat(txtDateFrom); txtDateFrom.Text = DateTime.Now.AddDays(-30).ToString("yyyy/MM/dd"); txtDateFrom.RawText = DateTime.Now.AddDays(-30).ToString("dd/MM/yyyy"); DataBinder(); CheckStatus(); } }
protected void Page_Load(object sender, EventArgs e) { if (!X.IsAjaxRequest) { //ACShipper.Disabled = false; hidSeed.Text = string.IsNullOrEmpty(Request["Seed"]) ? "0" : Request["Seed"]; ControlBinder.DateFormat(txtDate); txtDate.Text = DateTime.Now.ToString("yyyy/MM/dd"); txtDate.RawText = DateTime.Now.ToString("yyyy/MM/dd"); } }
protected void Page_Load(object sender, EventArgs e) { if (!X.IsAjaxRequest) { hidSeed.Text = Request["seed"] == null ? "" : Request["seed"]; ControlBinder.DateFormat(l_etd); ControlBinder.DateFormat(l_eta); ControlBinder.DateFormat(l_atd); ControlBinder.DateFormat(l_ata); CmbNP.SelectedItem.Value = "N"; } }
protected void Page_Load(object sender, EventArgs e) { if (!X.IsAjaxRequest) { ControlBinder.DateFormat(txtDate); ControlBinder.DateFormat(txtTo); txtDate.Focus(true); txtDate.Text = DateTime.Now.AddDays(-7).ToString("yyyy/MM/dd"); txtDate.RawText = DateTime.Now.AddDays(-7).ToString("yyyy/MM/dd"); DataBinder(); } }
protected void Page_Load(object sender, EventArgs e) { txtMAWB.Focus(); if (!X.IsAjaxRequest) { DODRowID = string.IsNullOrEmpty(Request["DODRowID"]) ? "" : Request["DODRowID"].Substring(0, Request["DODRowID"].Length - 1); hidSeed.Text = string.IsNullOrEmpty(Request["seed"]) ? "" : Request["seed"]; ControlBinder.DateFormat(txtJob); ControlBinder.DateFormat(txtDepartDate); ControlBinder.DateFormat(txtDeliveryDate); } }
protected void Page_Load(object sender, EventArgs e) { if (!X.IsAjaxRequest) { ControlBinder.DateFormat(txtFrom); ControlBinder.DateFormat(txtTo); string sys = Request["sys"] == null ? "" : Request["sys"]; txtLotNo.Text = tp.getPre(sys); ControlsInit(); DataBinder(); } }
protected void Page_Load(object sender, EventArgs e) { if (!X.IsAjaxRequest) { ControlBinder.DateFormat(txtNoticeDate); ControlBinder.DateFormat(txtWhseClosing); ControlBinder.DateFormat(txtHandleClosing); ControlBinder.DateFormat(txtETD); rowid.Value = Request["rowid"]; seed.Value = Request["seed"]; txtCustomer.Focus(); } }
protected void Page_Load(object sender, EventArgs e) { if (!X.IsAjaxRequest) { ControlBinder.DateFormat(txtCFSClosing); ControlBinder.DateFormat(txtCYClosing); ControlBinder.DateFormat(txtOnBoard); ControlBinder.DateFormat(txtETD); ControlBinder.DateFormat(txtETADischarge); ControlBinder.DateFormat(txtETAFinal); ControlBinder.DateFormat(txtATD); } }
protected void Page_Load(object sender, EventArgs e) { if (!X.IsAjaxRequest) { ControlBinder.DateFormat(txtFlightFrom); ControlBinder.DateFormat(txtFlightTo); TextHelper tp = new TextHelper(); string sys = Request["sys"] == null ? "" : Request["sys"]; txtLotNo.Text = tp.getPre(sys); txtFlightFrom.Text = DateTime.Now.AddDays(-3).ToString("yyyy/MM/dd"); txtFlightFrom.RawText = DateTime.Now.AddDays(-3).ToString("dd/MM/yyyy"); DataBinder(); } }
protected void Page_Load(object sender, EventArgs e) { if (!X.IsAjaxRequest) { hidSeed.Text = Request["seed"] == null ? "-1" : Request["seed"]; hidMAWB.Text = Request["MBL"] == null ? "-1" : Request["MBL"]; ControlBinder.DateFormat(txtFreeStorageStart); ControlBinder.DateFormat(txtFreeStorageEnd); ControlBinder.DateFormat(txtPickUp); ControlBinder.DateFormat(FI_Date); ControlBinder.DateFormat(r_ETD); ControlBinder.DateFormat(r_ETA); } }
protected void Page_Load(object sender, EventArgs e) { if (!X.IsAjaxRequest) { ControlBinder.DateFormat(txtETD); ControlBinder.DateFormat(txtETADischarge); ControlBinder.DateFormat(txtETAFinal); ControlBinder.DateFormat(txtATD); ControlBinder.DateFormat(txtATA); ControlBinder.DateFormat(txtFreeStorageStart); ControlBinder.DateFormat(txtFreeStorageEnd); ControlBinder.DateFormat(txtPickup); } }
protected void Page_Load(object sender, EventArgs e) { if (!X.IsAjaxRequest) { hidSeed.Text = Request["seed"] == null ? "" : Request["seed"]; hidMAWB.Text = Request["MAWB"] == null ? "" : Request["MAWB"]; hidIDList.Text = Server.UrlDecode(Request["IDList"] == null ? "" : Request["IDList"]); ControlBinder.DateFormat(txtEst); ControlBinder.DateFormat(txtAct); txtCS.Text = FSecurityHelper.CurrentUserDataGET()[0]; CmbNP.SelectedItem.Value = "N"; txtEst.Text = DateTime.Now.AddDays(0).ToString("yyyy/MM/dd"); txtEst.RawText = DateTime.Now.AddDays(0).ToString("dd/MM/yyyy"); } }
protected void Page_Load(object sender, EventArgs e) { if (!X.IsAjaxRequest) { ControlBinder.DateFormat(txtDateFrom); ControlBinder.DateFormat(txtDateTo); txtDateFrom.RawText = DateTime.Now.AddDays(-30).ToString("dd/MM/yyyy"); txtDateFrom.Text = DateTime.Now.AddDays(-30).ToString("yyyy/MM/dd"); hidPostSeed.Text = Request["postseed"] == null ? "" : Request["postseed"]; if (hidPostSeed.Text != "") { txtDateFrom.Text = ""; } } }
protected void Page_Load(object sender, EventArgs e) { if (!X.IsAjaxRequest) { hidSeed.Text = Request["seed"] == null ? "" : Request["seed"]; hidIDList.Text = Server.UrlDecode(Request["IDList"] == null ? "" : Request["IDList"]); typename = Request["type"] == null ? "" : Request["type"].ToLower(); showname = "AE-Direct MAWB"; ControlBinder.DateFormat(l_etd); ControlBinder.DateFormat(l_eta); ControlBinder.DateFormat(l_atd); ControlBinder.DateFormat(l_ata); txtMAWB.Focus(true); } }
protected void Page_Load(object sender, EventArgs e) { if (!X.IsAjaxRequest) { if (!IsPostBack) { ControlBinder.DateFormat(txtBeginDate); ControlBinder.DateFormat(txtEndDate); txtEndDate.Text = DateTime.Now.ToString("yyyy/MM/dd"); txtBeginDate.Text = DateTime.Now.AddDays(-30).ToString("yyyy/MM/dd"); Binder(); } } }
protected void Page_Load(object sender, EventArgs e) { if (!X.IsAjaxRequest) { hidSeed.Text = Request["seed"] == null ? "0" : Request["seed"]; hidMAWB.Text = Request["MAWB"] == null ? "0" : Request["MAWB"]; ControlBinder.DateFormat(txtFreeStorageStart); ControlBinder.DateFormat(txtFreeStorageEnd); ControlBinder.DateFormat(txtPickUp); ControlBinder.DateFormat(FI_Date); ControlBinder.DateFormat(r_ETD); ControlBinder.DateFormat(r_ETA); FI_Currency.Text = ControlBinder.getCurrency("f", SYS); cur = ControlBinder.getCurrency("f", SYS); } }
protected void Page_Load(object sender, EventArgs e) { if (!X.IsAjaxRequest) { TextHelper tp = new TextHelper(); string sys = Request["sys"] == null ? "" : Request["sys"]; txtLotNo.Text = tp.getPre(sys); txtLotNo.Focus(); tp.SetFocusAtLast("txtLotNo"); ControlBinder.DateFormat(txtETDFrom); ControlBinder.DateFormat(txtETDTo); txtETDFrom.RawText = DateTime.Now.AddDays(-10).ToString("dd/MM/yyyy"); txtETDFrom.Text = DateTime.Now.AddDays(-10).ToString("yyyy/MM/dd"); ControlBinder.CmbBinder(StoreOP, "GetUserListByStat"); DataBinder(); } }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { txtETDFrom.Focus(); ControlBinder.DateFormat(txtETDFrom); ControlBinder.DateFormat(txtETDTo); string date = DateTime.Now.Year.ToString() + "/" + DateTime.Now.Month.ToString().PadLeft(2, '0') + "/01"; txtETDFrom.RawText = date; txtETDFrom.Text = date; if (Request["Sys"] != null) { sys = Request["Sys"]; } ComboboxBinder(); } }
protected void Page_PreRender(object sender, EventArgs e) { if (!X.IsAjaxRequest) { if (!IsPostBack) { ControlBinder.DateFormat(txtATA); ControlBinder.DateFormat(txtATD); ControlBinder.DateFormat(txtETA); ControlBinder.DateFormat(txtETD); ControlsInit(); ComboBoxBinder(); GridListBinder(); DataBinder(); UnVoid(); LockControl(); //X.AddScript("showCompanyRemark('CmbShipperCode,CmbConsigneeCode,CmbNotify1Code,CmbNotify2Code', 'Shipper,Consignee,Notify #1,Notify #2');"); } } }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { txtETDFrom.Focus(); ControlBinder.DateFormat(txtETDFrom); ControlBinder.DateFormat(txtETDTo); if (FSecurityHelper.CurrentUserDataGET()[12].ToString().ToUpper() == "CON/HKG") { lblVerifyNo.Hidden = true; txtVerifyNo.Hidden = true; } string date = DateTime.Now.Year.ToString() + "/" + DateTime.Now.Month.ToString().PadLeft(2, '0') + "/01"; txtETDFrom.RawText = date; txtETDFrom.Text = date; if (Request["Sys"] != null) { hidsys.Text = Request["Sys"]; } if (hidsys.Value.ToString().ToUpper().Contains("A")) { X.AddScript("LoadTd();"); } ComboboxBinder(); if (hidsys.Text.StartsWith("A")) { lblHBL.Text = "HAWB"; lblMBL.Text = "MAWB"; lblVessel.Visible = false; txtVessel.Hidden = true; lblVoyage.Visible = false; txtVoyage.Hidden = true; lblContainer.Visible = false; txtContainer.Hidden = true; gridReference.ColumnModel.Columns[2].Header = "MAWB"; gridReference.ColumnModel.Columns[3].Header = "HAWB"; } JobDataBinding(); } }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { txtName.Value = "SABTOYHK02"; txtName.Text = "SABABA TOYS INC C/O WAH LUNG TOYS CO., LTD. "; txtPass.Value = "C/O"; txtPass.Text = "C/O"; //datafield1.Format = "dd/m/Y"; //datafield1.AltFormats = "d/M/Y|d/M|d/M/y"; //datafield1.Format = "m/dd/Y"; //datafield1.AltFormats = "M/dd/Y|M/dd|M/dd/y"; //datafield1.Format = "Y/m/dd"; //datafield1.AltFormats = "Y/M/dd|M/dd|y/M/dd"; ControlBinder.DateFormat(datafield1); } }
protected void Page_Load(object sender, EventArgs e) { if (!X.IsAjaxRequest) { hidSeed.Text = Request["seed"] == null ? "" : Request["seed"]; hidIDList.Text = Server.UrlDecode(Request["IDList"] == null ? "" : Request["IDList"]); typename = Request["type"] == null ? "c" : Request["type"].ToLower(); if (typename == "c") { showColoader1.Visible = false; showColoader2.Visible = false; } else { showColoader1.Visible = true; showColoader2.Visible = true; } showname = typename == "c" ? "AE-Make Consol" : "AE-Coloader Out"; ControlBinder.DateFormat(l_etd); ControlBinder.DateFormat(l_eta); ControlBinder.DateFormat(l_atd); ControlBinder.DateFormat(l_ata); } }