예제 #1
0
        private void LoadTaskDetails()
        {
            string          OCODE     = ((SessionUser)Session["SessionUser"]).OCode;
            string          orderNo   = txtOrder.Text;
            List <ItemList> aItemList = new List <ItemList>();

            aItemList = masterBLL.GetTaskDetailsByOrderNo(orderNo, OCODE).ToList();

            if (aItemList.Count > 0)
            {
                GridTask.DataSource = aItemList;
                GridTask.DataBind();
            }
        }
예제 #2
0
 private void LoadTask()
 {
     try
     {
         string OCode = Convert.ToString(((SessionUser)Session["SessionUser"]).OCode);
         List <LC_InputType> InputType = inputTypeBll.GetALLTask(OCode);
         if (InputType.Count > 0)
         {
             GridTask.DataSource = InputType;
             GridTask.DataBind();
         }
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
예제 #3
0
        //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;
            }
        }
예제 #4
0
        public void LoadTaskToGrid()
        {
            string OCODE = ((SessionUser)Session["SessionUser"]).OCode;

            //Select Order Id
            int marketingInfoId = Convert.ToInt32(HidMarketingInfoId.Value);
            //int OrderId = aVisitStatusUpdateBLL.GetOrderId(marketingInfoId);
            //HiddenFieldworkOrderId.Value = OrderId.ToString();

            //Load to grid view
            List <MRK_Task_Details> aTaskList = new List <MRK_Task_Details>();

            aTaskList = aVisitStatusUpdateBLL.GetTaskDetailsByWorkOrderNo(marketingInfoId, OCODE).ToList();


            if (aTaskList.Count > 0)
            {
                GridTask.DataSource = aTaskList;
                GridTask.DataBind();
            }
        }