protected void Page_Load(object sender, EventArgs e)
    {
        // values for State & Branch
        //objCallRegistration.Region_Sno = 8;
        //objCallRegistration.State = "55"; //INTERNATIONAL COUNTRIES
        //objCallRegistration.Branch_Sno = 28;  // INTERNATIONAL Branch
        //objCallRegistration.Language = "4";
        //objCallRegistration.BusinessLine = "1";
        objCallRegistration.City = "0";

        if (!Page.IsPostBack)
        {
            objRequestReg.UserName = Membership.GetUser().UserName.ToString();
            tableResult.Visible    = false;
            objCommonClass.BindCountry(ddlCountry);
            // Added for Complaint div
            objRequestReg.LocCode = "";
            objRequestReg.BindProductDivision_UserName(ddlProductDiv);

            DataTable  dTableF     = new DataTable("tblInsert");
            DataColumn dClFileName = new DataColumn("FileName", System.Type.GetType("System.String"));
            dTableF.Columns.Add(dClFileName);
            ViewState["dTableFile"] = dTableF;
        }
        System.Threading.Thread.Sleep(int.Parse(ConfigurationManager.AppSettings["AjaxPleaseWaitTime"]));
    }
예제 #2
0
    protected void Page_Load(object sender, EventArgs e)
    {
        sqlParamSrh[4].Value = int.Parse(rdoboth.SelectedValue);
        if (!Page.IsPostBack)
        {
            //Filling Territories to grid of calling BindDataGrid of CommonClass

            objCommonClass.BindDataGrid(gvTerritory, "uspTerritoryMaster", true, sqlParamSrh, lblRowCount);
            objCommonClass.BindCountry(ddlCountry);
            ddlState.Items.Insert(0, new ListItem("Select", "Select"));
            ddlCity.Items.Insert(0, new ListItem("Select", "Select"));
            imgBtnUpdate.Visible = false;
            ViewState["Column"]  = " Territory_Code";
            ViewState["Order"]   = "ASC";

            string UserName = Membership.GetUser().UserName.ToString();
            if (UserName.ToLower() == "cgit" || UserName.ToLower() == "wad")
            {
                showTR.Visible = true;
            }
            else
            {
                showTR.Visible = false;
            }
        }
        System.Threading.Thread.Sleep(int.Parse(ConfigurationManager.AppSettings["AjaxPleaseWaitTime"]));
    }
예제 #3
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!Page.IsPostBack)
     {
         //Filling Unit to grid of calling BindDataGrid of CommonClass
         objCommonClass.BindDataGrid(gvComm, "uspUnitMaster", true, sqlParamSrh);
         objCommonClass.BindCompany(ddlCompany);
         objCommonClass.BindUnitType(ddlUnitType);
         objCommonClass.BindCountry(ddlCountry);
         imgBtnUpdate.Visible = false;
     }
     System.Threading.Thread.Sleep(int.Parse(ConfigurationManager.AppSettings["AjaxPleaseWaitTime"]));
 }
예제 #4
0
 protected void Page_Load(object sender, EventArgs e)
 {
     sqlParamSrh[3].Value = int.Parse(rdoboth.SelectedValue);
     if (!Page.IsPostBack)
     {
         //Filling Countries to grid of calling BindDataGrid of CommonClass
         objCommonClass.BindDataGrid(gvComm, "uspCompanyMaster", true, sqlParamSrh, lblRowCount);
         objCommonClass.BindCountry(ddlCountry);
         imgBtnUpdate.Visible = false;
         ViewState["Column"]  = "Company_Code";
         ViewState["Order"]   = "ASC";
     }
     System.Threading.Thread.Sleep(int.Parse(ConfigurationManager.AppSettings["AjaxPleaseWaitTime"]));
 }
예제 #5
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
        {
            //Filling Dealer to grid of calling BindDataGrid of CommonClass
            objCommonClass.BindDataGrid(gvComm, "[uspDealerMaster]", true, sqlParamSrh);
            imgBtnUpdate.Visible = false;
            objCommonClass.BindCountry(ddlCountryCode);
            objCommonClass.BindRegion(ddlRegion);

            ddlCityCode.Items.Insert(0, "Select");
            ddlStateCode.Items.Insert(0, "Select");
            ddlBranch.Items.Insert(0, "Select");
        }

        System.Threading.Thread.Sleep(int.Parse(ConfigurationManager.AppSettings["AjaxPleaseWaitTime"]));
    }
예제 #6
0
    protected void Page_Load(object sender, EventArgs e)
    {
        sqlParamSrh[3].Value = int.Parse(rdoboth.SelectedValue);
        if (!Page.IsPostBack)
        {
            //Filling LandMarks to grid of calling BindDataGrid of CommonClass

            objCommonClass.BindDataGrid(gvTerritory, "uspLandMarkMaster", true, sqlParamSrh, lblRowCount);
            objCommonClass.BindCountry(ddlCountry);
            ddlState.Items.Insert(0, new ListItem("Select", "Select"));
            ddlCity.Items.Insert(0, new ListItem("Select", "Select"));
            ddlTerritory.Items.Insert(0, new ListItem("Select", "Select"));
            imgBtnUpdate.Visible = false;
            ViewState["Column"]  = "LandMark_Code";
            ViewState["Order"]   = "ASC";
        }
        System.Threading.Thread.Sleep(int.Parse(ConfigurationManager.AppSettings["AjaxPleaseWaitTime"]));
    }
예제 #7
0
    protected void Page_Load(object sender, EventArgs e)
    {
        try
        {
            System.Threading.Thread.Sleep(int.Parse(ConfigurationManager.AppSettings["AjaxPleaseWaitTime"]));
            objCallRegistration.EmpCode = Membership.GetUser().UserName;
            if (!IsPostBack)
            {
                tableResult.Visible = false;
                objCommonClass.BindCountry(DdlCountry);
                objCommonClass.BindProductDivisionWithOutCode(ddlProductDiv); //ok

                DataTable  dTableF     = new DataTable("tblInsert");
                DataColumn dClFileName = new DataColumn("FileName", System.Type.GetType("System.String"));
                dTableF.Columns.Add(dClFileName);
                ViewState["dTableFile"] = dTableF;
            }
        }
        catch (Exception ex)
        {
            CommonClass.WriteErrorErrFile(Request.RawUrl.ToString(), ex.StackTrace.ToString() + "-->" + ex.Message.ToString());
        }
    }