Exemple #1
0
 private void Task_Confirmation_Load(object sender, EventArgs e)
 {
     dbc.BindOrderStatus(ddl_Task);
     dbc.BindOrderStatus(ddl_Sub_Task);
     Load_Task_Details();
     radioButton1_CheckedChanged(sender, e);
 }
Exemple #2
0
    protected void Page_Load(object sender, EventArgs e)
    {
        User_Role_Id = Session["Role_Id"].ToString();
        if (Session["userid"] == null)
        {
            Response.Redirect("~/Login.aspx");
        }
        else
        {
            userid = int.Parse(Session["userid"].ToString());

            Empname   = Session["Empname"].ToString();
            BRANCH_ID = int.Parse(Session["Branch_id"].ToString());
        }
        if (Session["client_Id"] != "" && Session["subProcess_id"] != "")
        {
            client_Id     = int.Parse(Session["client_Id"].ToString());
            Subprocess_id = int.Parse(Session["subProcess_id"].ToString());
        }
        if (!IsPostBack)
        {
            DivCreate.Visible = false;
            DivView.Visible   = true;
            Gridview_Bind_Orders();
            Get_Count_Of_Orders();
            dbc.BindClientName(ddl_ClientName);
            dbc.BindState(ddl_State);
            dbc.BindOrderType(ddl_ordertype);
            dbc.BindOrderStatus(ddl_orderstatus);
            dbc.BindOrderTask(ddl_ordersTask);
            GetMaximum_OrderNumber();
        }
    }
Exemple #3
0
        private void Rework_Order_View_Load(object sender, EventArgs e)
        {
            dbc.BindUserName_Allocate(ddl_UserName);
            dbc.BindOrderStatus(ddl_Order_Status_Reallocate);
            Gridview_Bind_Assigned_Orders();
            btnFirst_Click(sender, e);

            lbl_Total.Text = dtuser.Rows.Count.ToString();


            //Create a DataSet with the existing DataTables
        }
Exemple #4
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Session["userid"] == null)
        {
            Response.Redirect("~/Login.aspx");
        }
        else
        {
            userid  = int.Parse(Session["userid"].ToString());
            Empname = Session["Empname"].ToString();
        }

        if (!IsPostBack)
        {
            DateTime date = new DateTime();
            date = DateTime.Now;
            string dateeval = date.ToString("dd/MM/yyyy");
            txt_Date.Text = dateeval.ToString();
            GetMaximum_OrderNumber();
            //divseacrh.Visible = false;
            DivView.Visible = true;
            // Divcreate.Visible = false;
            // lblhead.Text = "Add New Order";
            dbc.BindClientName(ddl_ClientName);
            dbc.BindClientName(ddl_Search_Client_type);
            ddl_Search_Client_type.Items.Insert(1, "ALL");
            dbc.BindOrderType(ddl_order_search_Order_Type);
            ddl_order_search_Order_Type.Items.Insert(1, "ALL");

            dbc.BindOrderStatus(ddl_order_search_Status);
            ddl_order_search_Status.Items.Insert(1, "ALL");
            dbc.BindOrderType(ddl_ordertype);
            dbc.BindOrderStatus(ddl_orderstatus);

            dbc.BindState(ddl_State);
            txt_OrderNumber.Focus();
            GridviewbindOrderdata();
            lbl_Record_Addedby.Text   = Empname.ToString();
            lbl_Record_AddedDate.Text = DateTime.Now.ToString("MM/dd/yyyy hh:mm:ss tt");
            if (RadioButtonList1.SelectedValue == "1")
            {
                divorderwise.Visible  = true;
                divclientwise.Visible = false;
            }
            else if (RadioButtonList1.SelectedValue == "2")
            {
                divorderwise.Visible  = false;
                divclientwise.Visible = true;
            }
        }
    }
Exemple #5
0
        public Vendors_Order_Move(int USER_ID, string ROLE_ID)
        {
            InitializeComponent();
            User_id      = USER_ID;
            User_Role_ID = int.Parse(ROLE_ID);

            dbc.BindOrderStatus(ddl_Order_Status_Reallocate);
        }
Exemple #6
0
        public Reassigned_Order_Move(int USER_ID)
        {
            InitializeComponent();
            User_id = USER_ID;
            dbc.BindOrderStatus(ddl_Order_Status_Reallocate);

            Geridview_Bind_Reassigned_Orders();
        }
Exemple #7
0
        private void Employee_Error_Entry_Load(object sender, EventArgs e)
        {
            Hashtable htuserid = new Hashtable();
            DataTable dtuserid = new DataTable();

            htuserid.Add("@Trans", "USERNAME");
            htuserid.Add("@User_id", userid);
            dtuserid = dataaccess.ExecuteSP("Sp_Error_Info", htuserid);
            if (dtuserid.Rows.Count > 0)
            {
                Username = dtuserid.Rows[0]["User_Name"].ToString();
            }
            BindErrorType();
            BindgrdError();
            if (Work_Type_Id == 3)
            {
                if (AdminStatus == 2)
                {
                    dbc.BindError_Task_Super_Qc(Cbo_Task, int.Parse(ORDERTASK));
                }
                else
                {
                    dbc.BindOrderStatus(Cbo_Task);
                }
            }
            else
            {
                if (AdminStatus == 2)
                {
                    dbc.BindError_Task(Cbo_Task, int.Parse(ORDERTASK));
                }
                else
                {
                    dbc.BindOrderStatus(Cbo_Task);
                }
            }
            grd_Error.ColumnHeadersDefaultCellStyle.BackColor = Color.SteelBlue;
            grd_Error.EnableHeadersVisualStyles = false;
            grd_Error.ColumnHeadersDefaultCellStyle.ForeColor = Color.WhiteSmoke;
            ddl_User.Visible = false;
            BindgrdError();
        }
        private void Clear()
        {
            Control_Enable_true();
            txt_Tax_Invoice_baseCost.Text  = "";
            txt_Tax_Invoice_Mail_Cost.Text = "";
            txt_Invoice_Date.Value         = DateTime.Now;
            txt_Invoice_comments.Text      = "";
            Grid_Invoice_Details.Rows.Clear();
            txt_Production_Date.Value = DateTime.Now;
            txt_Search_orderno.Text   = "";

            txt_Fromdate.Value            = DateTime.Now;
            txt_Todate.Value              = DateTime.Now;
            txt_Invoice_Order_Number.Text = "";
            grd_order.DataSource          = null;

            grd_order.Rows.Clear();



            //clearing all text boxes and dropdowns
            dbc.BindClientName(ddl_ClientName);
            if (ddl_ClientName.SelectedIndex > 0)
            {
                dbc.BindSubProcessName(ddl_SubProcess, int.Parse(ddl_ClientName.SelectedValue.ToString()));
            }
            dbc.BindOrderType(ddl_ordertype);
            dbc.BindState(ddl_State);
            if (ddl_State.SelectedIndex > 0)
            {
                dbc.BindCounty(ddl_County, int.Parse(ddl_State.SelectedIndex.ToString()));
            }
            dbc.BindOrderStatus(ddl_ordertask);
            //dbc.Bind_Employee_Order_source(ddl_Order_Source);
            txt_OrderNumber.Text      = "";
            txt_APN.Text              = "";
            txt_Client_order_ref.Text = "";
            txt_Address.Text          = "";
            txt_Borrowername.Text     = "";
            txt_City.Text             = "";
            txt_Zip.Text              = "";
            txt_Notes.Text            = "";
            txt_Search_cost.Text      = "";
            txt_Copy_cost.Text        = "";
            //txt_Abstractor_Cost.Text = "";
            // txt_noofpage.Text = "";
            txt_Date.Value = DateTime.Now;
        }
 protected void Page_Load(object sender, EventArgs e)
 {
     if (Session["userid"] == null)
     {
         Response.Redirect("~/Login.aspx");
     }
     else
     {
         userid       = int.Parse(Session["userid"].ToString());
         Empname      = Session["Empname"].ToString();
         BRANCH_ID    = int.Parse(Session["Branch_id"].ToString());
         User_Role_Id = Session["Role_Id"].ToString();
     }
     if (Session["client_Id"] != "" && Session["subProcess_id"] != "")
     {
         client_Id     = int.Parse(Session["client_Id"].ToString());
         Subprocess_id = int.Parse(Session["subProcess_id"].ToString());
     }
     if (!IsPostBack)
     {
         DivCreate.Visible = false;
         DivView.Visible   = true;
         Gridview_Bind_Orders();
         Get_Count_Of_Orders();
         dbc.BindClientName(ddl_ClientName);
         dbc.BindState(ddl_State);
         dbc.BindProduct_Type(ddl_Product_Type);
         dbc.BindOrderType(ddl_ordertype);
         dbc.BindOrderStatus(ddl_orderstatus);
         dbc.BindOrderTask(ddl_ordersTask);
         GetMaximum_OrderNumber();
         ConfigureColors();
         LoadGraphData();
         CreatePieGraph();
         if (User_Role_Id == "2")
         {
         }
         else if (User_Role_Id == "1")
         {
             list_itemque.Attributes.Add("class", "active");
             //li_queue.Visible = true;
             //divque.Visible = true;
         }
     }
 }
        public Abstract_Order_Move(int USER_ID, string ROLE_ID, string OPERATION)
        {
            InitializeComponent();
            User_id      = USER_ID;
            User_Role_ID = int.Parse(ROLE_ID);
            Operation    = OPERATION;
            dbc.BindOrderStatus(ddl_Order_Status_Reallocate);

            Geridview_Bind_Abstractor_Orders();

            if (Operation == "Returned")
            {
                lbl_Header.Text = "ABSTRACTOR RETURNED QUEUE:";
            }
            else if (Operation == "Cancelled")
            {
                lbl_Header.Text = "ABSTRACTOR CANCELLED QUEUE:";
            }
        }
 private void Rework_Search_Order_Load(object sender, EventArgs e)
 {
     dbc.BindUserName_Allocate(ddl_UserName);
     dbc.BindOrderStatus(ddl_Order_Status_Reallocate);
 }
Exemple #12
0
        private void Employee_Error_Entry_Load(object sender, EventArgs e)
        {
            tabPageExternalErrorEntry.PageVisible = false;
            if (User_Role == "1" || User_Role == "4" || User_Role == "6")
            {
                tabPageExternalErrorEntry.PageVisible = true;
                // BindExternalErrorEntry();
            }
            tabPaneErrorEntry.SelectedPage = tabPageInternalErrorEntry;

            Hashtable htuserid = new Hashtable();
            DataTable dtuserid = new DataTable();

            htuserid.Add("@Trans", "USERNAME");
            htuserid.Add("@User_id", userid);
            dtuserid = dataaccess.ExecuteSP("Sp_Error_Info", htuserid);
            if (dtuserid.Rows.Count > 0)
            {
                Username = dtuserid.Rows[0]["User_Name"].ToString();
            }

            Bind_New_ErrorType();
            BindErrorType();
            BindgrdError();

            BindExternalNewErrorType();
            BindExternalErrorType();
            BindGridExternalErrors();

            if (Work_Type_Id == 3)
            {
                if (AdminStatus == 2)// This is For Super Qc
                {
                    dbc.BindError_Task_Super_Qc(Cbo_Task, int.Parse(ORDERTASK));
                    dbc.BindError_Task_Super_Qc(ddlExternalTask, Convert.ToInt32(ORDERTASK));
                }
                else
                {
                    dbc.BindOrderStatus(Cbo_Task);
                    dbc.BindOrderStatus(ddlExternalTask);
                }
            }
            else
            {
                if (AdminStatus == 2)
                {
                    if (Client_Id == 40)// this is for Title Exam order 40 Client Id
                    {
                        dbc.BindError_Task_For_Title_Exam(Cbo_Task);
                        dbc.BindError_Task_For_Title_Exam(ddlExternalTask);
                    }
                    else
                    {
                        dbc.BindError_Task(Cbo_Task, int.Parse(ORDERTASK));
                        dbc.BindError_Task(ddlExternalTask, Convert.ToInt32(ORDERTASK));
                    }
                }
                else
                {
                    dbc.BindOrderStatus(Cbo_Task);
                    dbc.BindOrderStatus(ddlExternalTask);
                }
            }
            grd_Error.ColumnHeadersDefaultCellStyle.BackColor = Color.SteelBlue;
            grd_Error.EnableHeadersVisualStyles = false;
            grd_Error.ColumnHeadersDefaultCellStyle.ForeColor = Color.WhiteSmoke;

            gridExternalError.ColumnHeadersDefaultCellStyle.BackColor = Color.SteelBlue;
            gridExternalError.EnableHeadersVisualStyles = false;
            gridExternalError.ColumnHeadersDefaultCellStyle.ForeColor = Color.WhiteSmoke;

            ddl_User.Visible        = false;
            ddlExternalUser.Visible = false;

            BindgrdError();
            cbo_ErrorCatogery.Focus();
            //Error info details
            if (ErrorInfo_ID != 0)
            {
                Error_Info_Details();
                grd_Error.Visible = false;
            }
        }