Exemple #1
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            string mat_id = Request.QueryString["MAT_ID"];
            if (mat_id != null)
            {
                //ListBoxDataSource.SelectParameters.Clear();
                //ListBoxDataSource.SelectCommand = "SELECT MAT_ID,MAT_CODE1 FROM PIP_MAT_STOCK WHERE MAT_ID=" + mat_id;
                //txtItemCode.Enabled = false;
                //ListBox1.Visible = false;
            }
            Master.HeadingMessage = "Material Catalog";
            string mat_code = Session["STK_MAT_CODE"].ToString();
            if (mat_code != "")
            {
                txtItemCode.Text = mat_code;
            }

            Master.RadGridList = "";
            Master.AddModalPopup("~/Material/MaterialStockRegister.aspx", btnRegister.ClientID, 550, 750);

            if (Session["ITEM_CODE_SEARCH_MM"] != null)
            {
                txtItemCode.Text = Session["ITEM_CODE_SEARCH_MM"].ToString();
            }
        }
    }
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            Master.HeadingMessage = "Material Receive & Inspection (MRIR)";
            Master.AddModalPopup("~/Material/MatInspAdd.aspx", btnAdd.ClientID, 550, 850);
            Master.AddModalPopup("~/Material/MatInsp_View.aspx", btnView.ClientID, 600, 600);


            //   Master.AddModalPopup("~/Common/FileImport.aspx?TYPE_ID=11", btnPDFImport.ClientID, 600, 600);

            Master.RadGridList = grdMRIR.ClientID;
            try
            {
                if (Session["MatInsp_SESSION"] != null)
                {
                    RadPersistenceManager1.LoadState();
                    grdMRIR.Rebind();
                }
            }
            catch (Exception ex)
            {
            }
            if (!WebTools.UserInRole("MM_INSERT"))
            {
                btnAdd.Visible = false;
            }
        }
    }
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            Master.HeadingMessage = "Request For Inspection (RFI)";
            Master.AddModalPopup("~/Material/MatRFINew.aspx", btnNew.ClientID, 500, 750);
            Master.RadGridList = itemsGrid.ClientID;

            try
            {
                if (Session["MAT_RFI_SESSION"] != null)
                {
                    RadPersistenceManager1.LoadState();
                    itemsGrid.Rebind();
                }
            }
            catch (Exception ex)
            {
            }
            if (!WebTools.UserInRole("MM_INSERT"))
            {
                btnNew.Visible = false;
            }
        }
    }
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         Master.HeadingMessage = "REQUEST FOR INSPECTION (PO RFI)";
         Master.AddModalPopup("~/Procurement/POInspAdd.aspx", btnNew.ClientID, 500, 600);
         Master.RadGridList = itemsGrid.ClientID;
     }
     if (!WebTools.UserInRole("PO_RFI_ADD"))
     {
         btnNew.Visible = false;
     }
     //if (!WebTools.UserInRole("POInsp"))
     //{
     //   // Master.ShowError("Dont have access to this page");
     //     Response.Redirect("~/ErrorPages/NoAccess.htm");
     //    return;
     //}
     try
     {
         if (Session["PO_RFI_SESSION"] != null)
         {
             RadPersistenceManager1.LoadState();
             itemsGrid.Rebind();
         }
     }
     catch (Exception ex)
     {
     }
 }
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            Master.HeadingMessage  = "PO Item Details <br/> (";
            Master.HeadingMessage += WebTools.GetExpr("PO_NO", "PIP_PO", " WHERE PO_ID = '" + Request.QueryString["PO_ID"] + "'");
            Master.HeadingMessage += ") (" + WebTools.GetExpr("PO_SUBJECT", "PIP_PO", " WHERE PO_ID = '" + Request.QueryString["PO_ID"] + "'");
            Master.HeadingMessage += ")";

            Master.AddModalPopup("~/Procurement/PODetailsAdd.aspx", btnAdd.ClientID, 500, 600);
        }
        if (!WebTools.UserInRole("PO_ADD"))
        {
            btnImportMR.Visible = false;
        }

        if (WebTools.UserInRole("Admin"))
        {
            btnDeleteAll.Visible = true;
            this.itemsGrid.Columns[2].Visible = true;
            return;
        }
        else
        {
            this.itemsGrid.Columns[2].Visible = false;
        }
    }
Exemple #6
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            Master.HeadingMessage  = "Material Requisition (";
            Master.HeadingMessage += WebTools.GetExpr("MR_NO", "PIP_MAT_REQUISITION", " MR_ID='" + Request.QueryString["MR_ID"] + "'");
            Master.HeadingMessage += ") <br/> (";
            Master.HeadingMessage += WebTools.GetExpr("MR_TITLE", "PIP_MAT_REQUISITION", " MR_ID='" + Request.QueryString["MR_ID"] + "'") + ")";
            Master.AddModalPopup("~/Procurement/MRItemAdd.aspx?MR_ID=" + Request.QueryString["MR_ID"], btnAdd.ClientID, 450, 650);
            Master.RadGridList = itemsGrid.ClientID;

            string USER_ID   = WebTools.GetExpr("CREATE_BY", "PIP_MAT_REQUISITION", " WHERE MR_ID ='" + Request.QueryString["MR_ID"] + "'");
            string CREATE_BY = WebTools.GetExpr("USER_NAME", "USERS", " WHERE USER_ID ='" + USER_ID + "'");
            string USER_NAME = Session["USER_NAME"].ToString();
            if ((WebTools.UserInRole("MR_ADD")) && (CREATE_BY.ToUpper() == USER_NAME.ToUpper() || WebTools.UserInRole("ADMIN")))
            {
                btnAdd.Visible = true;
            }

            if (WebTools.UserInRole("Admin"))
            {
                btnDeleteAll.Visible = true;
                this.itemsGrid.Columns[2].Visible = true;
                return;
            }
            else
            {
                this.itemsGrid.Columns[2].Visible = false;
            }
        }
    }
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            Master.HeadingMessage = "Amogh Updates";
            //Master.AddModalPopup("~/Utilities/LineMTOImport.aspx", btnLineMTOImport.ClientID, 600, 600);

            RadTabStrip1.Tabs[0].Selected = true;
            RadMultiPage1.SelectedIndex   = 0;

            if (Session["LAST_TAB"] != null)
            {
                RadMultiPage1.SelectedIndex = Int32.Parse(Session["LAST_TAB"].ToString());
                RadTabStrip1.SelectedIndex  = Int32.Parse(Session["LAST_TAB"].ToString());
            }

            Master.AddModalPopup("~/Utilities/LineMTOImport.aspx", btnLineMTOImport.ClientID, 250, 600);
            Master.AddModalPopup("~/Utilities/ImportIDFMTO.aspx", btnIsoMTOImport.ClientID, 250, 600);
            Master.AddModalPopup("~/Utilities/SmlForLineMto.aspx", btnLineMTOSimulation.ClientID, 200, 400);
            Master.AddModalPopup("~/Utilities/SmlForIdfMto.aspx", btnSimulIsoMTO.ClientID, 200, 400);
            Master.AddModalPopup("~/Utilities/PPCSCustomSrn.aspx", btnSRNUpdate.ClientID, 600, 800);
            Master.AddModalPopup("~/Utilities/CollectPDF.aspx", btnCollectPDF.ClientID, 500, 740);
            //Master.AddModalPopup("~/Utilities/POAddOn.aspx", btnAddOnPO.ClientID, 600, 900);
            disableOptions();
            CheckRunningProcess();
        }
    }
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         Master.HeadingMessage = "SHIPMENT MASTER";
         Master.AddModalPopup("~/Logistics/ShipmentNew.aspx", btnAdd.ClientID, 550, 650);
     }
 }
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         Master.HeadingMessage = "Shipping Consignment Note";
         Master.AddModalPopup("~/Logistics/SCNCreate.aspx", btnNew.ClientID, 450, 450);
     }
 }
Exemple #10
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         Master.AddModalPopup("~/WeldingInspec/InspectorRegister.aspx", btnRegister.ClientID, 450, 550);
         Master.RadGridList = RadGrid1.ClientID;
     }
 }
Exemple #11
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         Master.HeadingMessage = "Hydro Test";
         Master.AddModalPopup("~/HydroTest/HydroTestNew.aspx", btnNew.ClientID, 450, 550);
         Master.RadGridList = TransGridView.ClientID;
     }
 }
Exemple #12
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         Master.HeadingMessage = "SPOOL RECEIVE NOTE";
         Master.AddModalPopup("~/SpoolMove/SpoolReceiveNew.aspx", btnNew.ClientID, 500, 650);
         Master.RadGridList = GridItems.ClientID;
     }
 }
Exemple #13
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         Master.HeadingMessage = "Material Substitution";
         Master.AddModalPopup("~/Material/MaterialSubstitutionNew.aspx", btnAdd.ClientID, 400, 600);
         Master.RadGridList = itemsGrid.ClientID;
     }
 }
Exemple #14
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            Master.HeadingMessage = "PO Technical Submission";

            Master.AddModalPopup("~/Procurement/POTechnicalSubmissionNew.aspx", btnAdd.ClientID, 450, 650);
        }
    }
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         Master.HeadingMessage = "Material Reuse";
         Master.AddModalPopup("~/Material/MaterialReuseNew.aspx", btnAdd.ClientID, 450, 650);
         Master.RadGridList = RadGrid1.ClientID;
     }
 }
Exemple #16
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         Master.HeadingMessage = "Site Assembly";
         Master.AddModalPopup("~/Erection/SiteAssemblyJCRegister.aspx", btnNewIssue.ClientID, 550, 650);
         Master.RadGridList = LooseIssueGridView.ClientID;
     }
 }
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         Master.HeadingMessage = "PO Manufacturing Status";
         Master.AddModalPopup("~/Procurement/POSubOrder.aspx", btnSubOrder.ClientID, 350, 650);
         Master.AddModalPopup("~/Procurement/PO_Assembly.aspx", btnAssembly.ClientID, 250, 450);
     }
 }
Exemple #18
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         Master.HeadingMessage = "Packing List";
         Master.AddModalPopup("~/Logistics/CreateSRN.aspx", btnAdd.ClientID, 500, 650);
         Master.RadGridList = itemsGrid.ClientID;
     }
 }
Exemple #19
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         Master.HeadingMessage = "Add-on Material to PPCS Data";
         Master.AddModalPopup("~/Utilities/POAddOnImport.aspx", btnUpload.ClientID, 600, 750);
         Master.RadGridList = itemsGrid.ClientID;
     }
 }
Exemple #20
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         Master.HeadingMessage = "Paint Request";
         Master.AddModalPopup("~/Painting/PaintBulkRegister.aspx", btnNewIssue.ClientID, 450, 550);
         Master.RadGridList = LooseIssueGridView.ClientID;
     }
 }
Exemple #21
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         Master.HeadingMessage = "Purchase Order";
         Master.RadGridList    = "";
         Master.AddModalPopup("~/Material/PO_Register.aspx", btnNew.ClientID, 400, 600);
     }
 }
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         Master.HeadingMessage = "System Definition";
         Master.AddModalPopup("~/TestPackage/SystemDef_Register.aspx", btnRegister.ClientID, 550, 650);
         Master.RadGridList = sysGridView.ClientID;
     }
 }
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         Master.HeadingMessage = "Punch List";
         Master.AddModalPopup("~/Procurement/POPunchlistAdd.aspx", btnNewPunch.ClientID, 350, 550);
         Master.RadGridList = RadGrid1.ClientID;
     }
 }
Exemple #24
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         Master.HeadingMessage = "Preservation Report Details";
         Master.AddModalPopup("~/Preservation/PresDetailAdd.aspx", btnAdd.ClientID, 550, 600);
         Master.RadGridList = griItems.ClientID;
     }
 }
Exemple #25
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         Master.HeadingMessage = "Material Quarantine";
         Master.AddModalPopup("~/Material/MaterialQuarantineAdd.aspx", btnRegister.ClientID, 350, 550);
         Master.RadGridList = RadGrid1.ClientID;
     }
 }
Exemple #26
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         Master.HeadingMessage = "Spool Pickling";
         Master.AddModalPopup("~/SpoolMove/SpoolPicklingNew.aspx", btnNewTrans.ClientID, 550, 650);
         Master.RadGridList = TransGridView.ClientID;
     }
 }
Exemple #27
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         Master.HeadingMessage = "Penalty 100% RT";
         Master.RadGridList    = "";
         Master.AspGridList    = TransGridView.ClientID;
         Master.AddModalPopup("~/WeldingInspec/RT100New.aspx", btnNew.ClientID, 400, 750);
     }
 }
Exemple #28
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            Master.HeadingMessage  = "Material Requisition<br/>";
            Master.HeadingMessage += WebTools.GetExpr("MR_NO", "PIP_MAT_REQUISITION", " MR_ID='" + Request.QueryString["MR_ID"] + "'");

            Master.AddModalPopup("~/Material/MRItemAdd.aspx?MR_ID=" + Request.QueryString["MR_ID"], btnAdd.ClientID, 450, 650);
        }
    }
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            Master.HeadingMessage = "Heat No/MTC";

            Master.AddModalPopup("~/Procurement/POVendorDataImport.aspx", btnImportIRN.ClientID, 400, 600);
            Master.RadGridList = itemsGrid.ClientID;
        }
    }
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         Master.HeadingMessage  = "Material Substitution Request<br/>";
         Master.HeadingMessage += WebTools.GetExpr("REQ_NO", "PIP_MAT_SUBSTITUTE", " REQ_ID='" + Request.QueryString["REQ_ID"].ToString() + "'");
         Master.AddModalPopup("~/Material/MaterialSubstitutionItemNew.aspx?REQ_ID=" + Request.QueryString["REQ_ID"], btnAdd.ClientID, 450, 650);
         Master.RadGridList = itemsGridDetail.ClientID;
     }
 }