Exemplo n.º 1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         fillWarehouse();
         if (Session["TRID"] != null)
         {
             if (Session["TRID"].ToString() != "0" && Session["TRstate"].ToString() == "View")
             {
                 state = "View";
                 GetTransferDetails(Session["TRID"].ToString());
             }
             else if (Session["TRID"].ToString() == "0" && Session["TRstate"].ToString() == "Add")
             {
                 state = "Add";
                 fillUser();
                 WMpageAddNew();
                 ddlWTWStatus.DataSource = WMFillStatus();
                 ddlWTWStatus.DataBind();
                 UCWTWTransferDate.Date = DateTime.Now;
                 UC_ShippingDate.Date   = DateTime.Now;
                 UCExpDeliveryDate.Date = DateTime.Now;
             }
         }
     }
     Toolbar1.SetAddNewRight(false, "Not Allowed");
     Toolbar1.SetEditRight(false, "Not Allowed");
     Toolbar1.SetSaveRight(true, "Not Allowed");
     Toolbar1.SetClearRight(false, "Not Allowed");
     Toolbar1.SetImportRight(false, "Not Allowed");
 }
Exemplo n.º 2
0
        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");
        }
Exemplo n.º 4
0
        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");
            }
        }
Exemplo n.º 6
0
        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");
        }
Exemplo n.º 7
0
        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)
     {
         if (Session["QCID"] != null)
         {
             if (Session["QCID"].ToString() != "0" && Session["QCstate"].ToString() == "View")
             {
                 state = "View";
                 GetDispatchDetails(Session["QCID"].ToString());
             }
             else if (Session["QCID"].ToString() != "0" && Session["QCstate"].ToString() == "Edit")
             {
                 state = "Edit";
                 fillUser();
                 ddlStatus.DataSource = WMFillStatus();
                 ddlStatus.DataBind();
                 UCDispatchDate.Date    = DateTime.Now;
                 UC_ShippingDate.Date   = DateTime.Now;
                 UCExpDeliveryDate.Date = DateTime.Now;
                 if (Session["QCID"].ToString() != "0")
                 {
                     DisplaySOData();
                 }
             }
         }
         else if (Session["DispID"] != null)
         {
             if (Session["DispID"].ToString() != "0" && Session["Dispstate"].ToString() == "View")
             {
                 state = "View";
                 GetDispatchDetails(Session["DispID"].ToString());
             }
         }
         else if (Session["TRID"] != null)
         {
             if (Session["TRID"].ToString() != "0" && Session["TRstate"].ToString() == "View")
             {
                 state = "View";
                 GetDispatchDetails(Session["TRID"].ToString());
             }
             else if (Session["TRID"].ToString() != "0" && Session["TRstate"].ToString() == "Edit")
             {
                 state = "Edit";
                 fillUser();
                 ddlStatus.DataSource = WMFillStatus();
                 ddlStatus.DataBind();
                 UCDispatchDate.Date    = DateTime.Now;
                 UC_ShippingDate.Date   = DateTime.Now;
                 UCExpDeliveryDate.Date = DateTime.Now;
                 if (Session["TRID"].ToString() != "0")
                 {
                     DisplaySOData();
                 }
             }
         }
     }
     Toolbar1.SetAddNewRight(false, "Not Allowed");
     Toolbar1.SetEditRight(false, "Not Allowed");
     if (state != "View")
     {
         Toolbar1.SetSaveRight(true, "Not Allowed");
     }
     else
     {
         Toolbar1.SetSaveRight(false, "Not Allowed");
     }
     Toolbar1.SetClearRight(false, "Not Allowed");
     Toolbar1.SetImportRight(false, "Not Allowed");
 }