Example #1
0
 public Employee_Target_Matrix(int user_id, string USER_ROLE)
 {
     InitializeComponent();
     User_Role = USER_ROLE;
     if (User_Role == "1")
     {
         dbc.BindClientName(ddl_Client);
     }
     else
     {
         dbc.BindClientNo(ddl_Client);
     }
     User_ID = user_id;
 }
        public Abstractor_Order_View(int Orderid, int User_Id, string USER_ROLE_ID)
        {
            InitializeComponent();

            // Clear();
            pnl_visible();
            User_Role_Id = USER_ROLE_ID;
            // Order_Entry.ActiveForm.Width = 1045;
            if (User_Role_Id == "1")
            {
                dbc.BindClientName(ddl_ClientName);
            }
            else
            {
                dbc.BindClientNo(ddl_ClientName);
            }

            dbc.BindOrderType(ddl_ordertype);
            userid = User_Id;
            dbc.BindState(ddl_State);

            if (ddl_ClientName.SelectedIndex > 0)
            {
                clientid = int.Parse(ddl_ClientName.SelectedValue.ToString());
            }
            if (User_Role_Id == "1")
            {
                dbc.BindSubProcessName(ddl_SubProcess, clientid);
            }
            else
            {
                dbc.BindSubProcessNumber(ddl_SubProcess, clientid);
            }
            ddl_ordertask.Visible = true;
            ddl_ordertask.Items.Insert(0, "Search");
            ddl_ordertask.Items.Insert(1, "Typing");
            ddl_ordertask.Items.Insert(2, "Upload");
            ddl_ordertask.Items.Insert(3, "Upload Completed");
            ddl_ordertask.Items.Insert(4, "Abstractor");


            //   ddl_Order_Source.Items.Insert(0, "SELECT");
            ddl_Order_Source.Items.Insert(0, "Online");
            ddl_Order_Source.Items.Insert(1, "Subscription");
            ddl_Order_Source.Items.Insert(2, "Plant");
            ddl_Order_Source.Items.Insert(3, "Abstractor");
            ddl_Order_Source.Items.Insert(4, "Online/Abstractor");
            //Order_Controls_Load();
            Order_Id = Orderid;

            // SetMyCustomFormat();


            if (ddl_ClientName.SelectedIndex != 0)
            {
                dbc.BindSubProcessName(ddl_SubProcess, clientid);
                // ddl_SubProcess.SelectedValue =Convert.ToString(SubprocessId);
                ddl_SubProcess.Focus();
            }
        }
Example #3
0
        public Vendor_Order_View(int Orderid, int User_Id, int USER_ROLE)
        {
            InitializeComponent();

            User_Role_Id = USER_ROLE;
            if (User_Role_Id == 1)
            {
                dbc.BindClientName(ddl_ClientName);
            }
            else
            {
                dbc.BindClientNo(ddl_ClientName);
            }

            dbc.BindOrderType(ddl_ordertype);
            userid = User_Id;
            dbc.BindState(ddl_State);
            int clientid = int.Parse(ddl_ClientName.SelectedValue.ToString());

            if (User_Role_Id == 1)
            {
                dbc.BindSubProcessName(ddl_SubProcess, clientid);
            }
            else
            {
                dbc.BindSubProcessNumber(ddl_SubProcess, clientid);
            }
            ddl_ordertask.Visible = true;
            ddl_ordertask.Items.Insert(0, "Search");
            ddl_ordertask.Items.Insert(1, "Typing");
            ddl_ordertask.Items.Insert(2, "Upload");
            ddl_ordertask.Items.Insert(3, "Upload Completed");
            ddl_ordertask.Items.Insert(4, "Abstractor");
            ddl_ordertask.Items.Insert(5, "Vendor");
            //   ddl_Search_Type.Visible = true;
            // ddl_Search_Type.Items.Insert(0, "SELECT");
            //ddl_Search_Type.Items.Insert(0, "TIER 1");
            //ddl_Search_Type.Items.Insert(1, "TIER 2");
            //ddl_Search_Type.Items.Insert(2, "TIER 2-In house");

            //   ddl_Order_Source.Items.Insert(0, "SELECT");
            ddl_Order_Source.Items.Insert(0, "Online");
            ddl_Order_Source.Items.Insert(1, "Subscription");
            ddl_Order_Source.Items.Insert(2, "Plant");
            ddl_Order_Source.Items.Insert(3, "Abstractor");
            ddl_Order_Source.Items.Insert(4, "Online/Abstractor");
            //Order_Controls_Load();
            Order_Id = Orderid;

            // SetMyCustomFormat();


            if (ddl_ClientName.SelectedIndex != 0)
            {
                dbc.BindSubProcessName(ddl_SubProcess, clientid);
                // ddl_SubProcess.SelectedValue =Convert.ToString(SubprocessId);
                ddl_SubProcess.Focus();
            }
        }
 private void Client_Wise_Task_Restriction_Load(object sender, EventArgs e)
 {
     if (User_Role == "1")
     {
         dbc.Bind_Client_Names(ddl_ClientName);
     }
     else
     {
         dbc.BindClientNo(ddl_ClientName);
     }
     dbc.Bind_Order_Task(ddl_Task);
     Bind_Client_Wise_Task_Restrictions();
 }
        public Rework_Superqc_Order_Entry(int Orderid, int User_Id, string entry_type, string USER_ROLE, string PRODUCTION_DATE)
        {
            InitializeComponent();
            Order_Id        = Orderid;
            userid          = User_Id;
            User_Role       = USER_ROLE;
            Production_Date = PRODUCTION_DATE;
            if (User_Role == "1")
            {
                dbc.BindClientName(ddl_ClientName);
            }
            else
            {
                dbc.BindClientNo(ddl_ClientName);
            }
            dbc.BindOrderType(ddl_ordertype);
            userid     = User_Id;
            Entry_Type = entry_type;
            dbc.BindState(ddl_State);
            clientid = int.Parse(ddl_ClientName.SelectedValue.ToString());
            if (User_Role == "1")
            {
                dbc.BindSubProcessName(ddl_SubProcess, clientid);
            }
            else
            {
                dbc.BindSubProcessNumber(ddl_SubProcess, clientid);
            }
            dbc.BindAbstractor_Order_Serarh_Type(ddl_Abstractor_Search_Type);
            ddl_ordertask.Visible = true;
            ddl_ordertask.Items.Insert(0, "Search");
            ddl_ordertask.Items.Insert(1, "Search QC");
            ddl_ordertask.Items.Insert(2, "Typing");
            ddl_ordertask.Items.Insert(3, "Typing QC");
            ddl_ordertask.Items.Insert(4, "Upload");
            ddl_ordertask.Items.Insert(5, "Upload Completed");
            ddl_ordertask.Items.Insert(6, "Abstractor");

            ddl_Order_Source.Items.Insert(0, "Online");
            ddl_Order_Source.Items.Insert(1, "Subscription");
            ddl_Order_Source.Items.Insert(2, "Abstractor");
            ddl_Order_Source.Items.Insert(3, "Online/Abstractor");
            ddl_Order_Source.Items.Insert(4, "Online/Data Tree");
            ddl_Order_Source.Items.Insert(5, "Data Trace");
            ddl_Order_Source.Items.Insert(6, "Title Point");
        }