protected void Page_Load(object sender, EventArgs e) { PosDT = PosNumber.GetAllPosNo(); if (string.IsNullOrEmpty(Request["Date"])) { Date = DateTime.Now.ToString("yyyy/MM/dd"); } else { Date = Request["Date"]; } if (string.IsNullOrEmpty(Request["Month"])) { Month = ""; } else { string[] datelist = Request["Month"].ToString().Split('/'); Year = datelist[0]; Month = datelist[1]; } if (!string.IsNullOrEmpty(Request["PosNo"])) { PosNo = Request["PosNo"]; } LoadOrderData(); }
protected void Page_Load(object sender, EventArgs e) { PosDT = PosNumber.GetAllPosNo(); if (!string.IsNullOrEmpty(Request["ClerkName"])) { ck.Name = Request["ClerkName"]; } else { Auth(); } if (string.IsNullOrEmpty(Request["Date"])) { Date = DateTime.Now.ToString("yyyy/MM/dd"); } else { Date = Request["Date"]; } PosNoBiding(); if (!string.IsNullOrEmpty(Request["PosNo"])) { PosNo = Request["PosNo"]; } LoadOrderData(); }
protected void Page_Load(object sender, EventArgs e) { HttpPostCheck(); switch (act) { case "Query": QueryOrder(); break; case "GetOrderItem": GetOrderItem(OrderID); break; default: DataTable dt = PosNumber.GetAllPosNo(); PosList = JsonConvert.SerializeObject(dt.AsEnumerable().Select(r => new { PosNo = r["PosNo"] }).ToList()); AllStaff = GetAllStaff(); break; } }