protected void Page_Load(object sender, EventArgs e)
    {
        GenarateSessionThroughtCoockie checkSession = new GenarateSessionThroughtCoockie();

        bool hasSession = checkSession.SessionCheck(1);

        if (hasSession)
        {
            userId   = Session["KP_User_Id"].ToString();
            userName = Session["KP_UserName"].ToString();
        }
        else

        {
            Response.Redirect("../Default.aspx");
            Response.End();
        }

        GetUserProfileName();
        //GetUsersPerformance();


        if (!IsPostBack)
        {
            styleTable      = GetCostingStyleInfoByUser();
            sampleTable     = GetCostingSampleInfoByUser();
            bulkStyleTable  = GetBulkStyleInfoByUser();
            bulkSampleTable = GetBulkSampleInfoByUser();
        }
    }
Пример #2
0
    protected void Page_Load(object sender, EventArgs e)
    {
        GenarateSessionThroughtCoockie checkSession = new GenarateSessionThroughtCoockie();

        bool hasSession = checkSession.SessionCheck(1);

        if (hasSession)
        {
            userId   = Session["KP_User_Id"].ToString();
            userName = Session["KP_UserName"].ToString();
        }
        else

        {
            Response.Redirect("~/admin/Default.aspx");
            Response.End();
        }
        optionId = Convert.ToInt32(Request.QueryString["Id"]);
        smvId    = Convert.ToInt32(Request.QueryString["Option"]);

        if (!IsPostBack)
        {
            table = LoadCostingInfo(smvId);

            if (optionId != 0)
            {
                LoadData(optionId);
            }
        }
    }
    protected void Page_Load(object sender, EventArgs e)
    {
        GenarateSessionThroughtCoockie checkSession = new GenarateSessionThroughtCoockie();

        bool hasSession = checkSession.SessionCheck(1);

        if (hasSession)
        {
            userId   = Session["KP_User_Id"].ToString();
            userName = Session["KP_UserName"].ToString();
        }
        else

        {
            Response.Redirect("../Default.aspx");
            Response.End();
        }

        if (!IsPostBack)
        {
            //newCostingTable = GetAllUsersNewCostingSummary(fromDate, toDate);
            //RevisedCostingTable = GetAllUsersRevisedCostingSummary(fromDate, toDate);
            //newBulkTable = GetAllUsersNewBulkSummary(fromDate, toDate);
            //RevisedBulkTable = GetAllUsersRevisedBulkSummary(fromDate, toDate);
        }
    }
Пример #4
0
    protected void Page_Load(object sender, EventArgs e)
    {
        GenarateSessionThroughtCoockie checkSession = new GenarateSessionThroughtCoockie();

        bool hasSession = checkSession.SessionCheck(1);

        if (hasSession)
        {
            userId   = Session["KP_User_Id"].ToString();
            userName = Session["KP_UserName"].ToString();
        }
        else

        {
            Response.Redirect("../Default.aspx");
            Response.End();
        }


        if (!IsPostBack)
        {
            table = LoadFabricInfo();
        }
        else
        {
            table = LoadFabricInfo();
        }
    }
Пример #5
0
    protected void Page_Load(object sender, EventArgs e)
    {
        GenarateSessionThroughtCoockie checkSession = new GenarateSessionThroughtCoockie();

        bool hasSession = checkSession.SessionCheck(1);

        if (hasSession)
        {
            userId   = Session["KP_User_Id"].ToString();
            userName = Session["KP_UserName"].ToString();
        }
        else

        {
            Response.Redirect("~/admin/Default.aspx");
            Response.End();
        }


        if (!IsPostBack)
        {
            //table = LoadCombineStyleReports(buyerId, styleNumber);
            //LoadStyleInfo();
            LoadBuyerName();
        }
        //table = LoadCombineStyleReports(buyerId, styleNumber);
    }
    protected void Page_Load(object sender, EventArgs e)
    {
        GenarateSessionThroughtCoockie checkSession = new GenarateSessionThroughtCoockie();

        bool hasSession = checkSession.SessionCheck(1);


        if (hasSession)
        {
            userId   = Session["KP_User_Id"].ToString();
            userName = Session["KP_UserName"].ToString();
        }
        else

        {
            Response.Redirect("../Default.aspx");
            Response.End();
        }



        loadUserId = Convert.ToInt32(Request.QueryString["Id"]);

        if (!IsPostBack)
        {
            table = LoadUserInformation();

            if (loadUserId != 0)
            {
                LoadUserInfoById(loadUserId);
                submitButton.Text = "Update";
            }
        }
    }
Пример #7
0
    protected void Page_Load(object sender, EventArgs e)
    {
        GenarateSessionThroughtCoockie checkSession = new GenarateSessionThroughtCoockie();

        bool hasSession = checkSession.SessionCheck(1);

        if (hasSession)
        {
            userId   = Session["KP_User_Id"].ToString();
            userName = Session["KP_UserName"].ToString();
        }
        else

        {
            Response.Redirect("../Default.aspx");
            Response.End();
        }
        merchantId = Convert.ToInt32(Request.QueryString["id"]);

        if (!IsPostBack)
        {
            table = GetMerchantInfo(merchantId);

            if (merchantId != 0)
            {
                LoadMerchantInfoForUpdate(merchantId);
            }
        }
    }
Пример #8
0
    protected void Page_Load(object sender, EventArgs e)
    {
        GenarateSessionThroughtCoockie checkSession = new GenarateSessionThroughtCoockie();

        bool hasSession = checkSession.SessionCheck(1);

        if (hasSession)
        {
            userId   = Session["KP_User_Id"].ToString();
            userName = Session["KP_UserName"].ToString();
        }
        else

        {
            Response.Redirect("../Default.aspx");
            Response.End();
        }

        loadSampleId = Convert.ToInt32(Request.QueryString["Id"]);

        if (!IsPostBack)
        {
            table = loadSampleStage();
            LoadBuyerName();
            if (loadSampleId != 0)
            {
                LoadFoeUpdate(loadSampleId);
            }
        }
        else
        {
            table = loadSampleStage();
        }
    }
Пример #9
0
    protected void Page_Load(object sender, EventArgs e)
    {
        GenarateSessionThroughtCoockie checkSession = new GenarateSessionThroughtCoockie();

        bool hasSession = checkSession.SessionCheck(1);

        if (hasSession)
        {
            userId   = Session["KP_User_Id"].ToString();
            userName = Session["KP_UserName"].ToString();
        }
        else

        {
            Response.Redirect("~/admin/Default.aspx");
            Response.End();
        }

        if (!IsPostBack)
        {
            LoadBuyerName();
            table = LoadComponentSmv(buyer, style);
        }
        table = LoadComponentSmv(buyer, style);
    }
Пример #10
0
    protected void Page_Load(object sender, EventArgs e)
    {
        GenarateSessionThroughtCoockie checkSession = new GenarateSessionThroughtCoockie();

        bool hasSession = checkSession.SessionCheck(2);

        if (hasSession)
        {
            merchantId    = Session["KP_Merchant_Id"].ToString();
            merchantLogin = Session["KP_Merchant_LoginId"].ToString();
        }
        else
        {
            Response.Redirect("login.aspx");
            Response.End();
        }

        if (!IsPostBack)
        {
            LoadBuyerName();
            LoadFabricType();
            LoadProductCategory();
            LoadUser();
            table = LoadPendingMerchantRequest(Convert.ToInt32(merchantId));
        }
    }
Пример #11
0
    //public string zone = "";
    protected void Page_Load(object sender, EventArgs e)
    {
        GenarateSessionThroughtCoockie checkSession = new GenarateSessionThroughtCoockie();

        bool hasSession = checkSession.SessionCheck(1);

        if (hasSession)
        {
            userId   = Session["KP_User_Id"].ToString();
            userName = Session["KP_UserName"].ToString();
            //zone= Session["KP_Zone"].ToString();
        }
        else

        {
            Response.Redirect("../Default.aspx");
            Response.End();
        }


        SmvId     = Convert.ToInt32(Request.QueryString["Id"]);
        RequestId = Convert.ToInt32(Request.QueryString["RequestId"]);
        if (!IsPostBack)
        {
            LoadBuyerName();
            LoadFabricType();
            LoadUser();
            LoadProductCategory();
            //table = loadCostingSmvinformation(buyerId,styleNumber);
            //LoadSeason();
            if (SmvId != 0)
            {
                LoadSmvInfoForUpdate(SmvId);

                buyerNameDropDownList.Enabled   = false;
                sampleStageDropDownList.Enabled = false;
                // fabricDropDownList.Enabled = false;
                //styleDescriptionTextBox.Enabled = false;
                //styleNumberTextBox.Enabled = false;
                ProductDropDownList.Enabled = false;
            }
            if (RequestId != 0)
            {
                LoadSmvInfoRequestIdWise(RequestId);
            }
            else
            {
                submitButton.Text = "Save";
            }
        }
    }
Пример #12
0
    protected void Page_Load(object sender, EventArgs e)
    {
        GenarateSessionThroughtCoockie checkSession = new GenarateSessionThroughtCoockie();

        bool hasSession = checkSession.SessionCheck(2);

        if (hasSession)
        {
            merchantId    = Session["KP_Merchant_Id"].ToString();
            merchantLogin = Session["KP_Merchant_LoginId"].ToString();
            SignOut();
        }
        else
        {
            Response.Redirect("login.aspx");
            Response.End();
        }
    }
Пример #13
0
    protected void Page_Load(object sender, EventArgs e)
    {
        GenarateSessionThroughtCoockie checkSession = new GenarateSessionThroughtCoockie();

        bool hasSession = checkSession.SessionCheck(1);

        if (hasSession)
        {
            userId   = Session["KP_User_Id"].ToString();
            userName = Session["KP_UserName"].ToString();
            SignOut();
        }
        else

        {
            Response.Redirect("Default.aspx");
            Response.End();
        }
    }
    protected void Page_Load(object sender, EventArgs e)
    {
        GenarateSessionThroughtCoockie checkSession = new GenarateSessionThroughtCoockie();

        bool hasSession = checkSession.SessionCheck(1);

        if (hasSession)
        {
            userId   = Session["KP_User_Id"].ToString();
            userName = Session["KP_UserName"].ToString();
        }
        else

        {
            Response.Redirect("~/admin/Default.aspx");
            Response.End();
        }
        RequestId = Convert.ToInt32(Request.QueryString["RequestId"]);
    }
    protected void Page_Load(object sender, EventArgs e)
    {
        GenarateSessionThroughtCoockie checkSession = new GenarateSessionThroughtCoockie();

        bool hasSession = checkSession.SessionCheck(1);

        if (hasSession)
        {
            userId   = Session["KP_User_Id"].ToString();
            userName = Session["KP_UserName"].ToString();
        }
        else

        {
            Response.Redirect("../Default.aspx");
            Response.End();
        }

        if (!IsPostBack)
        {
            requestTable = LoadAllPendingSmvRequestOfCurrentDate(fromDate, toDate);
        }
    }
    protected void Page_Load(object sender, EventArgs e)
    {
        GenarateSessionThroughtCoockie checkSession = new GenarateSessionThroughtCoockie();

        bool hasSession = checkSession.SessionCheck(1);

        if (hasSession)
        {
            userId   = Session["KP_User_Id"].ToString();
            userName = Session["KP_UserName"].ToString();
        }
        else

        {
            Response.Redirect("~/admin/Default.aspx");
            Response.End();
        }


        if (!IsPostBack)
        {
            table = LoadMerchantRequest(Convert.ToInt32(userId));
        }
    }
    //public string zone = "";
    protected void Page_Load(object sender, EventArgs e)
    {
        GenarateSessionThroughtCoockie checkSession = new GenarateSessionThroughtCoockie();

        bool hasSession = checkSession.SessionCheck(1);

        if (hasSession)
        {
            userId   = Session["KP_User_Id"].ToString();
            userName = Session["KP_UserName"].ToString();
            //zone = Session["KP_Zone"].ToString();
        }
        else

        {
            Response.Redirect("~/admin/Default.aspx");
            Response.End();
        }

        bulkSmvId = Convert.ToInt32(Request.QueryString["Id"]);

        RevisedBulkSmvId = Convert.ToInt32(Request.QueryString["Up"]);

        if (!IsPostBack)
        {
            LoadBuyerName();
            LoadFabricType();
            LoadUser();
            //LoadSeason();

            LoadProductCategory();
            mainBody.Visible = false;
            //table = LoadRevisedBulkSmvinformation(buyerId,styleNumber);
            if (bulkSmvId != 0)
            {
                LoadBuklSmvForUpdate(bulkSmvId);
                mainBody.Visible = true;
                buyerNameDropDownList.Enabled   = false;
                sampleStageDropDownList.Enabled = false;
                //fabricDropDownList.Enabled = false;
                //styleDescriptionTextBox.Enabled = false;
                styleNumberTextBox.Enabled  = false;
                ProductDropDownList.Enabled = false;
                submitButton.Visible        = false;
            }
            if (RevisedBulkSmvId != 0)
            {
                LoadBuklSmvForRevised(RevisedBulkSmvId);
                mainBody.Visible = true;
                buyerNameDropDownList.Enabled = false;
                //sampleStageDropDownList.Enabled = false;
                //fabricDropDownList.Enabled = false;
                //styleDescriptionTextBox.Enabled = false;
                styleNumberTextBox.Enabled = false;
                //ProductDropDownList.Enabled = false;
                updateButton.Visible = false;
            }

            else
            {
                // submitButton.Text = "Revised";
            }
        }
    }