private void Tax_Invoice_Generation_Load(object sender, EventArgs e) { dbc.BindClientName(ddl_Client_Search); dbc.BindClientName(ddl_ClientName); dbc.BindOrderType(ddl_ordertype); dbc.BindState(ddl_State); dbc.BIND_TAX_TASK(ddl_ordertask); txt_Production_Date.Enabled = true; Grid_Invoice_Details.Enabled = true; //dbc.Bind_Employee_Order_source(ddl_Order_Source); txt_Fromdate.Value = DateTime.Now; txt_Todate.Value = DateTime.Now; txt_Production_Date.Value = DateTime.Now; label1.Visible = true; label1.Text = "Enter Order No#"; txt_Search_orderno.Visible = true; if (operation == "VIEW") { label25.Text = "Edit Invoice Cost"; tabControl1.TabPages.RemoveAt(1); tabPage1.Text = "Edit/Update View"; btn_Save.Text = "Edit Invoice"; txt_Search_orderno.Text = inv_num.ToString(); txt_Search_orderno.Visible = true; label1.Visible = true; label1.Text = "Invoice Number :"; txt_Search_orderno.ReadOnly = true; txt_Production_Date.Enabled = false; Grid_Invoice_Details.Enabled = false; Control_Enable_false(); Bind_Individual_Invoice_Info(); } }