protected void Page_Load(object sender, EventArgs e)
    {
        if (Session["ChetanaCompanyName"] != "" || Session["ChetanaCompanyName"] != null)
        {
            if (Session["FY"] != null)
            {
                strChetanaCompanyName = Session["ChetanaCompanyName"].ToString();
                strFY = Session["FY"].ToString();
            }
        }

        if (!Page.IsPostBack)
        {
            Session["data"] = null;


            //DataView dv = new DataView(BindGvBookDetail().Table);
            DataView dv = new DataView(BindGvBookDetail(strChetanaCompanyName).Table);
            Session["data"] = dv;

            grdBookDetails.DataSource = dv;
            grdBookDetails.DataBind();
            repAlfabets.DataSource = Customer_cs.GetAlphabets();
            repAlfabets.DataBind();
            SetView();
            //txtcode.Focus();
        }
        else
        {
        }
    }
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
        {
            DataView dv = new DataView(BindGvCustDetail().Table);
            Session["data"]           = dv;
            grdCustDetails.DataSource = dv;
            grdCustDetails.DataBind();
            DdlSection.Enabled    = false;
            DdlSection.DataSource = SectionMaster.Get_SectionList();
            DdlSection.DataBind();
            repAlfabets.DataSource = Customer_cs.GetAlphabets();
            repAlfabets.DataBind();
            LblCustId.Text = "0";
            fillzones();
            TxtCustCode.Focus();
            custRating();
            getDDLdata();
            getDDLarezo();
            getDDLarea();

            SetView();
            //dv = (DataView)Session["data"];
            ////string val = ((LinkButton)(sender)).Text;
            //dv.RowFilter = "CustName='A'";
            //grdCustDetails.DataSource = dv;
            //grdCustDetails.DataBind();
            //((LinkButton)(sender)).BackColor = System.Drawing.Color.Red;
            //((LinkButton)(sender)).ForeColor = System.Drawing.Color.White;
        }
    }
 protected void Page_Load(object sender, EventArgs e)
 {
     try
     {
         SetView();
         if (!Page.IsPostBack)
         {
             grdCustomerMaster.DataSource = BindCustomerMasterDetail();
             grdCustomerMaster.DataBind();
             //MessageBox("coming1" + grdCustomerMaster.Rows.Count.ToString());
             DataView dv = new DataView(BindCustomerMasterDetail().Table);
             Session["data"] = dv;
             //Bind_DDL_SDZone();
             repAlfabets.DataSource = Customer_cs.GetAlphabets();
             repAlfabets.DataBind();
             pnlCustomerMaster.Visible = true;
         }
         else
         {
             pnlCustomerMaster.Visible = true;
         }
     }
     catch (Exception ex)
     {
         MessageBox(ex.ToString());
     }
 }
示例#4
0
 protected void Page_Load(object sender, EventArgs e)
 {
     SetView();
     if (!Page.IsPostBack)
     {
         grdSuperZoneDetails.DataSource = BindGvSuperZoneDetail();
         grdSuperZoneDetails.DataBind();
         DataView dv = new DataView(BindGvSuperZoneDetail().Table);
         Session["data"]        = dv;
         repAlfabets.DataSource = Customer_cs.GetAlphabets();
         repAlfabets.DataBind();
     }
     else
     {
         // pnlSuperZone.Visible = true;
     }
 }
    protected void Page_Load(object sender, EventArgs e)
    {
        if (ChkBlacklist.Checked == true)
        {
            lblblkremark.Visible = true;
            LblblkDate.Visible   = true;
            TxtblkRemark.Visible = true;
            TxtblkDate.Visible   = true;
        }
        else
        {
            lblblkremark.Visible = false;
            LblblkDate.Visible   = false;
            TxtblkRemark.Visible = false;
            TxtblkDate.Visible   = false;
        }
        if (Session["ChetanaCompanyName"] != "" || Session["ChetanaCompanyName"] != null)
        {
            if (Session["FY"] != "" || Session["FY"] != null)
            {
                strChetanaCompanyName = Session["ChetanaCompanyName"].ToString();
                strFY = Session["FY"].ToString();
            }
            else
            {
                Session.Clear();
            }
        }
        if (!Page.IsPostBack)
        {
            btnAddAccess.Enabled = false;
            txtBookType.Enabled  = false;
            txtFromQty.Enabled   = false;
            txtToQty.Enabled     = false;
            txtDiscount.Enabled  = false;

            DdlSection.Enabled    = false;
            DdlSection.DataSource = SectionMaster.Get_SectionList();
            DdlSection.DataBind();
            repAlfabets.DataSource = Customer_cs.GetAlphabets();
            repAlfabets.DataBind();
            LblCustId.Text = "0";
            fillzones();
            custRating();
            getDDLdata();
            getDDLarezo();
            getDDLarea();
            GetSBUCode();

            Session["saved"]         = null;
            Session["TempDataTable"] = null;
            Session["TempAssorted"]  = null;
            checkAction.Checked      = true;
            SetView();

            TxtCustCode.Focus();
            if (ChkBlacklist.Checked == true)
            {
                lblblkremark.Visible = true;
                LblblkDate.Visible   = true;
                TxtblkRemark.Visible = true;
                TxtblkDate.Visible   = true;
            }
            else
            {
                lblblkremark.Visible = false;
                LblblkDate.Visible   = false;
                TxtblkRemark.Visible = false;
                TxtblkDate.Visible   = false;
            }
        }
    }