//private void InsertProductionProcess() //{ // try // { // bool isOrderExist = masterBLL.isTaskOrderExist(txtOrder.Text); // if (isOrderExist != true) // { // string OCode = Convert.ToString(((SessionUser)Session["SessionUser"]).OCode); // List<LC_InputType> InputType = inputTypeBll.GetALLTask(OCode); // if (InputType.Count > 0) // { // foreach (var item in InputType) // { // LC_Task_Details aLC_Task_Details = new LC_Task_Details(); // aLC_Task_Details.Task = item.Input_Name; // aLC_Task_Details.Order_No = txtOrder.Text; // aLC_Task_Details.Schedule_Date = null; // aLC_Task_Details.Responsible_Person = null; // aLC_Task_Details.Status = "Pending"; // aLC_Task_Details.EditDate = DateTime.Today; // aLC_Task_Details.EditUser = ((SessionUser)Session["SessionUser"]).UserId; // aLC_Task_Details.Create_Date = DateTime.Today; // aLC_Task_Details.Create_User = ((SessionUser)Session["SessionUser"]).UserId; // aLC_Task_Details.OCode = ((SessionUser)Session["SessionUser"]).OCode; // int result1 = masterBLL.InsertTaskDetails(aLC_Task_Details); // } // } // } // } // catch (Exception ex) // { // throw ex; // } //} //protected void dtg_list_RowDataBound(object sender, GridViewRowEventArgs e) //{ // DropDownList ddl = null; // if (e.Row.RowType == DataControlRowType.DataRow) // { // ddl = e.Row.FindControl("ddlResponsiblePerson") as DropDownList; // } // if (ddl != null) // { // string OCODE = ((SessionUser)Session["SessionUser"]).OCode; // // Hashtable ht = new Hashtable(); // //ht.Add("Company_Code", CompanyCode); // // ht.Add("OCode", OCODE); // //DataTable dt = objGrp_BL.GetGroupheadList(ht); // //List<REmployee> employees = employeeBll.GetEmployees(OCODE).ToList(); // List<REmployee> employees = masterBLL.GetResponsiblePerson(OCODE).ToList(); // if (employees.Count > 0) // { // ddl.DataSource = employees; // ddl.DataValueField = "EID"; // ddl.DataTextField = "FirstName"; // ddl.DataBind(); // } // } //} //private void LoadAllActive_EmployeeList() //{ // string OCODE = ((SessionUser)Session["SessionUser"]).OCode; // List<REmployee> employees = employeeBll.GetEmployees(OCODE).ToList(); // ddlResponsiblePerson.DataSource = employees; // //ddlEmployee.DataValueField = "EID"; // //ddlEmployee.DataTextField = "FullName"; // //ddlEmployee.DataBind(); // //ddlEmployee.Items.Insert(0, new ListItem("---Select One---", "0")); //} private void LoadTask() { try { List <LC_Task_Details> aTask_Details = new List <LC_Task_Details>(); string OCODE = ((SessionUser)Session["SessionUser"]).OCode; string orderNo = txtOrder.Text; aTask_Details = masterBLL.GetTaskDetailsByOrderNoandOcode(orderNo, OCODE); if (aTask_Details.Count > 0) { GridTask.DataSource = aTask_Details; GridTask.DataBind(); } } catch (Exception ex) { throw ex; } }