protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { FillStatus(); FillSites(); Toolbar1.SetUserRights("GoodsReceipt", "EntryForm", ""); if (Session["PORIssueID"] != null) { //WMpageAddNew(); FillReceiptPartGridByIssueID(Convert.ToInt64(Session["PORIssueID"].ToString())); // GetReceiptHeadByReceiptID(); } else if (Session["PORHQReceiptID"] != null) { if (Session["PORHQReceiptID"].ToString() == "0") { // WMpageAddNew(); } else if (Session["PORHQReceiptID"].ToString() != "0") { GetReceiptHeadByReceiptID(); } } } UCFormHeader1.FormHeaderText = "Transfer From Site"; // UC_ReceiptDate.DateIsRequired(true, "", ""); }
protected void Page_Load(object sender, EventArgs e) { UCFormHeader1.FormHeaderText = "Dispatch"; if (!IsPostBack) { Toolbar1.SetUserRights("MaterialIssue", "EntryForm", ""); if (Session["PORIssueID"] != null) { if (Session["PORIssueID"].ToString() != "0") { GetIssueHead(); } else { //WMpageAddNew(); DisplayRequestData(); } } else if (Session["PORRequestID"] != null) { if (Session["PORRequestID"].ToString() != "0") { DisplayRequestData(); } } //Add by Suresh binddropdown(); gvApprovalRemarkBind(); divVisibility(); } UC_IssueDate.DateIsRequired(true, "", ""); }
protected void Page_Load(Object sender, EventArgs e) { if (!IsPostBack) { FillSites(); FillStatus(); Toolbar1.SetUserRights("Consumption", "EntryForm", ""); if (Session["PORConsumptionID"] != null) { if (Session["PORConsumptionID"].ToString() == "0") { WMpageAddNew(); SetDefaultValue(); } else if (Session["PORConsumptionID"].ToString() != "0") { GetConsuptionHead(); } } else if (Session["PORReceiptID"] != null) { if (Session["PORReceiptID"].ToString() != "0") { GetDefaultConsumptionfromRequestHead(); } } } UC_DateConsumption.DateIsRequired(true, "", ""); }
protected void Page_Load(object sender, EventArgs e) { bindgrid(); Toolbar1.SetUserRights("MaterialRequest", "Summary", ""); Toolbar1.SetSaveRight(false, "Not Allowed"); Toolbar1.SetClearRight(false, "Not Allowed"); Toolbar1.SetImportRight(false, "Not Allowed"); }
protected void Page_Load(object sender, EventArgs e) { BindReturnGrid(); Toolbar1.SetUserRights("MaterialRequest", "EntryForm", ""); Toolbar1.SetAddNewRight(true, "Not Allowed"); Toolbar1.SetSaveRight(false, "Not Allowed"); Toolbar1.SetClearRight(false, "Not Allowed"); Toolbar1.SetImportRight(true, "Not Allowed"); }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { PreviousPOID = long.Parse(Request.QueryString["POID"]); BindGrid(); Toolbar1.SetUserRights("MaterialRequest", "Summary", ""); } Toolbar1.SetAddNewRight(false, "Not Allowed"); Toolbar1.SetSaveRight(false, "Not Allowed"); Toolbar1.SetClearRight(false, "Not Allowed"); Toolbar1.SetImportRight(false, "Not Allowed"); }
protected void Page_Load(object sender, EventArgs e) { UCFormHeader1.FormHeaderText = "Shipping"; if (!IsPostBack) { BindGrid(); Toolbar1.SetUserRights("MaterialRequest", "EntryForm", ""); Toolbar1.SetSaveRight(false, "Not Allowed"); Toolbar1.SetAddNewRight(false, "Not Allowed"); Toolbar1.SetImportRight(false, "Not Allowed"); Toolbar1.SetClearRight(false, "Not Allowed"); } }
protected void Page_Load(object sender, EventArgs e) { UCFormHeader1.FormHeaderText = "Purchase Orders"; BindPOGrid(sender, e); if (!IsPostBack) { Toolbar1.SetUserRights("MaterialRequest", "EntryForm", ""); BindPOGrid(sender, e); } //Add By Suresh Toolbar1.SetAddNewRight(false, "Not Allowed"); Toolbar1.SetSaveRight(false, "Not Allowed"); Toolbar1.SetClearRight(false, "Not Allowed"); Toolbar1.SetImportRight(false, "Not Allowed"); }
protected void Page_Load(object sender, EventArgs e) { UCFormHeader1.FormHeaderText = "Sales Orders"; BindSOGrid(sender, e); if (!IsPostBack) { Toolbar1.SetUserRights("MaterialRequest", "EntryForm", ""); BindSOGrid(sender, e); } //dsvalue = int.Parse(hdndsvalue.Value.ToString()); //Add By Suresh Toolbar1.SetAddNewRight(false, "Not Allowed"); Toolbar1.SetSaveRight(false, "Not Allowed"); Toolbar1.SetClearRight(false, "Not Allowed"); Toolbar1.SetImportRight(false, "Not Allowed"); }
protected void Page_Load(object sender, EventArgs e) { UCFormHeader1.FormHeaderText = "Receiving"; if (!IsPostBack) { BindGrid(); Toolbar1.SetUserRights("MaterialRequest", "EntryForm", ""); Toolbar1.SetSaveRight(false, "Not Allowed"); Toolbar1.SetAddNewRight(false, "Not Allowed"); Toolbar1.SetImportRight(false, "Not Allowed"); Toolbar1.SetClearRight(false, "Not Allowed"); //try //{ // if ((Request.QueryString["PO"] != "") || (Request.QueryString["PO"] != null)) // { // // iPurchaseOrderClient ShipClient = new iPurchaseOrderClient(); // //ShipClient.ClearTempData(); // SelectedPO = Request.QueryString["PO"].ToString(); // SelectedPOs.Value = SelectedPO; // Fill_SortCode(); // CreateGrid(); // int a = ValidateStatus(SelectedPO); // if (a == 0) // { // Button1.Enabled = false; // BtnClearGrid.Enabled = false; // BtnSequence.Enabled = false; // ddlLocation.Enabled = false; // ddlPoList.Enabled = false; // txtReceiQty.Enabled = false; // //iReceivableClient ReceivableClient = new iReceivableClient(); // //ds = ReceivableClient.DisplayGrid(SelectedPO); // GridReceipt.DataSource = ds; // GridReceipt.DataBind(); // // ReceivableClient.Close(); // } // ShowPODetails(SelectedPOs.Value); // } //} //catch //{ //} } }
protected void Page_Load(object sender, EventArgs e) { if (Session["ASNID"] != null) { long asnID = long.Parse(Session["ASNID"].ToString()); GetASNDetail(asnID); } else { } Toolbar1.SetUserRights("MaterialRequest", "Summary", ""); Toolbar1.SetAddNewRight(true, "Not Allowed"); Toolbar1.SetSaveRight(false, "Not Allowed"); Toolbar1.SetClearRight(false, "Not Allowed"); Toolbar1.SetImportRight(true, "Not Allowed"); }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { Toolbar1.SetUserRights("MaterialReceipt", "EntryForm", ""); Toolbar1.SetAddNewRight(false, "Select pending receipt from Receipt Summary to AddNew / Edit Receipt", "../PowerOnRent/Default.aspx?invoker=Receipt"); FillStatus(); if (Session["PORReceiptID"] != null) { GetReceiptHeadByReceiptID(); } else if (Session["PORIssueID"] != null) { GetRequest_n_IssueHeadByIssueID(); } else if (Session["PORRequestID"] != null) { GetRequestHeadByRequestID(); } FillUserList(); } UC_ReceiptDate.DateIsRequired(true, "", ""); }
protected void Page_Load(object sender, EventArgs e) { if (Request.QueryString["invoker"].ToString() == "Request") { h4DivHead.InnerText = " Request"; UCFormHeader1.FormHeaderText = "Request"; // iframePOR.Attributes.Add("src", "../PowerOnRent/GridRequestSummary.aspx?FillBy=UserID"); iframePOR.Attributes.Add("src", "../PowerOnRent/GridRequestSummary.aspx?FillBy=UserID&Invoker=Request"); Toolbar1.SetUserRights("MaterialRequest", "Summary", ""); btnDriver.Visible = false; btnCancelOrder.Visible = true; } else if (Request.QueryString["invoker"].ToString() == "Approval") { h4DivHead.InnerText = " Approvals "; UCFormHeader1.FormHeaderText = "Approvals"; iframePOR.Attributes.Add("src", "../PowerOnRent/GridRequestSummary.aspx?FillBy=UserID&Invoker=Request"); Toolbar1.SetUserRights("MaterialRequest", "Summary", ""); Toolbar1.SetAddNewRight(false, "Click on pending Approved record [Red box] to Add New / Edit Issue"); btnDriver.Visible = false; btnCancelOrder.Visible = false; } else if (Request.QueryString["invoker"].ToString() == "Issue") { h4DivHead.InnerText = " Dispatch"; UCFormHeader1.FormHeaderText = "Dispatch"; //iframePOR.Attributes.Add("src", "../PowerOnRent/GridIssueSummary.aspx?FillBy=UserID"); iframePOR.Attributes.Add("src", "../PowerOnRent/GridRequestSummary.aspx?FillBy=UserID&Invoker=Issue"); Toolbar1.SetUserRights("MaterialIssue", "Summary", ""); Toolbar1.SetAddNewRight(false, "Click on pending Issue record [Red box] to Add New / Edit Issue"); btnDriver.Visible = true; btnCancelOrder.Visible = false; } else if (Request.QueryString["invoker"].ToString() == "Receipt") { h4DivHead.InnerText = "List of Material Receipts"; UCFormHeader1.FormHeaderText = "Material Receipts"; iframePOR.Attributes.Add("src", "../PowerOnRent/GridReceiptSummary.aspx?FillBy=UserID"); Toolbar1.SetUserRights("MaterialReceipt", "Summary", ""); Toolbar1.SetAddNewRight(false, "Click on pending Receipt record [Red box] to Add New / Edit Receipt"); } else if (Request.QueryString["invoker"].ToString() == "Consumption") { h4DivHead.InnerText = "List of Consumption"; UCFormHeader1.FormHeaderText = "Consumption"; iframePOR.Attributes.Add("src", "../PowerOnRent/GridConsumptionSummary.aspx?FillBy=UserID"); Toolbar1.SetUserRights("Consumption", "Summary", ""); } else if (Request.QueryString["invoker"].ToString() == "HQReceipt") { h4DivHead.InnerText = "List of Goods Receipts [HQ]"; UCFormHeader1.FormHeaderText = "Goods Receipts [HQ]"; iframePOR.Attributes.Add("src", "../PowerOnRent/GridHQReceiptSummary.aspx?FillBy=UserID"); Toolbar1.SetUserRights("GoodsReceipt", "Summary", ""); } Toolbar1.SetSaveRight(false, "Not Allowed"); Toolbar1.SetClearRight(false, "Not Allowed"); if (Session["Lang"] == "") { Session["Lang"] = Request.UserLanguages[0]; } loadstring(); if (!IsPostBack) { //Button btnExport = (Button)Toolbar1.FindControl("btnExport"); //btnExport.Visible = false; //Button btnImport = (Button)Toolbar1.FindControl("btnImport"); //btnImport.Visible = false; //Button btmMail = (Button)Toolbar1.FindControl("btmMail"); //btmMail.Visible = false; //Button btnPrint = (Button)Toolbar1.FindControl("btnPrint"); //btnPrint.Visible = false; } }