protected void Page_Load(object sender, EventArgs e) { if (Session["ChetanaCompanyName"] != "" || Session["ChetanaCompanyName"] != null) { if (Session["FY"] != "" || Session["FY"] != null) { strChetanaCompanyName = Session["ChetanaCompanyName"].ToString(); strFY = Session["FY"].ToString(); } else { Session.Clear(); } //Response.Write(strFY); } if (!Page.IsPostBack) { ViewState["srate"] = ""; SetView(); GetValidation(3, Convert.ToInt32(Session["Role"])); string grp = "BookSet"; DDLSelectSet.DataSource = Masterofmaster.Get_MasterOfMaster_ByGroup_ForDropdown(grp, "DropDown"); DDLSelectSet.DataBind(); DDLSelectSet.Items.Insert(0, new ListItem("-Select book set-", "0")); string std = "Standard"; DDlstandard.DataSource = Masterofmaster.Get_MasterOfMaster_ByGroup_ForDropdown(std, "DropDown"); DDlstandard.DataBind(); DDlstandard.Items.Insert(0, new ListItem("-STD-", "0")); txtdocDate.Text = DateTime.Now.ToString("dd/MM/yyyy"); txtChalDate.Text = DateTime.Now.ToString("dd/MM/yyyy"); txtOrdDate.Text = DateTime.Now.ToString("dd/MM/yyyy"); txtorder.Focus(); Session["tempBookData"] = null; // btncancel.Visible = false; //Session["tempBookData"] = null; } if (add) { btn_Save.Enabled = true; } if (!view) { BtnGetSpecimanDetails.Enabled = false; } }
protected void Page_Load(object sender, EventArgs e) { 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) { GetValidation(3, Convert.ToInt32(Session["Role"])); ModalPopUpDocNum.Show(); TxtDocNo.Focus(); string grp = "BookSet"; DDLSelectSet.DataSource = Masterofmaster.Get_MasterOfMaster_ByGroup_ForDropdown(grp, "DropDown"); DDLSelectSet.DataBind(); DDLSelectSet.Items.Insert(0, new ListItem("-Select book set-", "0")); string std = "Standard"; DDLstandard.DataSource = Masterofmaster.Get_MasterOfMaster_ByGroup_ForDropdown(std, "DropDown"); DDLstandard.DataBind(); DDLstandard.Items.Insert(0, new ListItem("-STD-", "0")); // txtdocDate.Text = DateTime.Now.ToString(sDateFormat); txtChalDate.Text = DateTime.Now.ToString(sDateFormat); // txtDeliverydte.Text = DateTime.Now.ToString(sDateFormat); // txtOrdDate.Text = DateTime.Now.ToString(sDateFormat); //txtorder.Focus(); Session["tempDCData"] = null; // Openpopup(2).; // btncancel.Visible = false; //Session["tempDCData"] = null; Bindcustomer(); // DCMaster.Get_Transporter(custcode); lblZoneCode.Visible = false; DDLZone.Visible = false; } }