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();
            }
        }
Example #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();
        }
    }
Example #3
0
        public Invoice_Order_Details(int Orderid, int User_Id, string OPERATION, string INV_NUM, string USER_ROLE)
        {
            InitializeComponent();
            userid    = User_Id;
            Operation = OPERATION;
            Order_Id  = Orderid;
            User_Role = USER_ROLE;
            if (User_Role == "1" || userid == 260 || userid == 179)
            {
                dbc.BindClientName(ddl_Client_Search);
            }
            else
            {
                dbc.BindClientNo_for_Report(ddl_Client_Search);
            }

            txt_Production_Date.Text = DateTime.Now.ToString();

            if (Order_Id != 0)
            {
                if (Operation == "Insert")
                {
                    load_order_masters();
                    Order_Load();
                    txt_Invoice_Date.Text            = DateTime.Now.ToString("mm/dd/yyyy");
                    txt_Invoice_Order_Number.Visible = true;
                    lbl_Enter_Order.Visible          = true;
                    Group_Order_Numbers.Enabled      = true;
                    lbl_Invoice.Visible        = false;
                    lbl_Invoice_Number.Visible = false;


                    txt_Production_Date.Text = DateTime.Now.ToString();
                }
                else if (Operation == "Update")
                {
                    txt_Invoice_Order_Number.Visible = false;
                    lbl_Enter_Order.Visible          = false;
                    lbl_Invoice.Visible        = true;
                    lbl_Invoice_Number.Visible = true;
                    btn_Save.Text = "Edit Invoice";
                    Group_Order_Numbers.Enabled = false;
                    Inv_Num = INV_NUM.ToString();
                    load_order_masters();
                    Order_Load();
                    Load_Invoice_Details();
                    if (client_Id == 4 && ddl_State.SelectedValue.ToString() == "31")
                    {
                        txt_CGI_Title_Land_Amount.Visible = false;
                    }
                    lbl_Invoice_Number.Text = Inv_Num.ToString();
                }
            }
        }
Example #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;
            }
        }
    }
        private void Invoice_Monthly_Load(object sender, EventArgs e)
        {
            if (Invoice_Id == 0)
            {
                if (User_Role == "1")
                {
                    dbc.BindClientName(ddl_Client_Name);
                }
                else
                {
                    dbc.BindClientNo_for_Report(ddl_Client_Name);
                }
                txt_From_date.Text    = DateTime.Now.ToString();
                txt_To_date.Text      = DateTime.Now.ToString();
                txt_Invoice_Date.Text = DateTime.Now.ToString();
                btn_Save.Text         = "Genrate Invoice";
                dbc.BindPayment_Status(ddl_Payment_Status);
                Control_Enable_True();
                txt_Old_balance.Text             = "0.00";
                txt_Invoice_Paying_Amount.Text   = "0.00";
                ddl_Payment_Status.SelectedValue = "1";
            }
            else if (Invoice_Id != 0)
            {
                if (User_Role == "1")
                {
                    dbc.BindClientName(ddl_Client_Name);
                }
                else
                {
                    dbc.BindClientNo_for_Report(ddl_Client_Name);
                }

                ddl_Client_Name.SelectedValue = Client_Id;
                ddl_Client_Name_SelectedIndexChanged(sender, e);
                dbc.BindPayment_Status(ddl_Payment_Status);
                ddl_Client_SubProcess.SelectedValue = Sub_Process_ID;
                txt_From_date.Text    = DateTime.Now.ToString();
                txt_To_date.Text      = DateTime.Now.ToString();
                txt_Invoice_Date.Text = DateTime.Now.ToString();
                btn_Save.Text         = "Edit Invoice";

                lbl_Invoice_Number.Text = Invoice_Number.ToString();
                lbl_Inv_Month.Text      = Invoice_Month.ToString();
                //txt_Invoice_Date.Text = Invoice_Date.ToString();
                //txt_Invoice_comments.Text = Invoice_Comments.ToString();
                Control_EnableFalse();
                Load_Invoice_Entred_Order_Details();
            }
        }
Example #6
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 #8
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();
            }
        }
Example #9
0
        private void Tax_Monthly_Invoice_Load(object sender, EventArgs e)
        {
            if (invoice_id == 0)
            {
                //insert
                dbc.BindClientName(ddl_Client_Name);
                txt_From_date.Text    = DateTime.Now.ToString();
                txt_To_date.Text      = DateTime.Now.ToString();
                txt_Invoice_Date.Text = DateTime.Now.ToString();
                btn_Save.Text         = "Genrate Invoice";
                dbc.BindPayment_Status(ddl_Payment_Status);
                Control_Enable_True();
                txt_Old_balance.Text             = "0.00";
                txt_Invoice_Paying_Amount.Text   = "0.00";
                ddl_Payment_Status.SelectedValue = "1";
            }
            else
            {
                //update
                dbc.BindClientName(ddl_Client_Name);
                ddl_Client_Name.SelectedValue = client_id;
                ddl_Client_Name_SelectedIndexChanged(sender, e);
                dbc.BindPayment_Status(ddl_Payment_Status);
                ddl_Client_SubProcess.SelectedValue = subprocess_id;
                txt_From_date.Text    = DateTime.Now.ToString();
                txt_To_date.Text      = DateTime.Now.ToString();
                txt_Invoice_Date.Text = DateTime.Now.ToString();
                btn_Save.Text         = "Edit Invoice";

                lbl_Invoice_Number.Text = invoice_no.ToString();
                lbl_Inv_Month.Text      = invoice_mon.ToString();
                //txt_Invoice_Date.Text = Invoice_Date.ToString();
                //txt_Invoice_comments.Text = Invoice_Comments.ToString();
                Control_EnableFalse();
                Load_Invoice_Entred_Order_Details();
            }
            dbc.BindClientName(ddl_Client_Name);
        }
 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();
     }
     if (!IsPostBack)
     {
         dbc.BindClientName(ddl_Client_Name);
     }
 }
        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");
        }
Example #12
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();
         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;
         }
     }
 }
Example #13
0
        public void load_order_masters()
        {
            dbc.BindClientName(ddl_ClientName);

            dbc.BindOrderType(ddl_ordertype);

            dbc.BindState(ddl_State);
            dbc.BindProduction_Unit_Type(ddl_Production_Unit);
            dbc.Bind_Employee_Order_source(ddl_Inhouse_Order_Source);
            dbc.Bind_Invoice_Ordered_For(ddl_Inhouse_Ordered_For);
            client_Id = int.Parse(ddl_ClientName.SelectedValue.ToString());

            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_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();


            // SetMyCustomFormat();


            if (ddl_ClientName.SelectedIndex != 0)
            {
                dbc.BindSubProcessName(ddl_SubProcess, client_Id);
                // ddl_SubProcess.SelectedValue =Convert.ToString(SubprocessId);
                ddl_SubProcess.Focus();
            }
        }
        public Order_Cost_Details(int Orderid, int User_Id, string OPERATION, string USER_ROLE_ID)
        {
            InitializeComponent();


            userid       = User_Id;
            Operation    = OPERATION;
            Order_Id     = Orderid;
            User_Role_Id = USER_ROLE_ID;

            if (User_Role_Id == "1")
            {
                dbc.BindClientName(ddl_Client_Search);
                int index = ddl_ClientName.FindString("NETCO");

                ddl_ClientName.SelectedIndex = index;
            }
            else
            {
                dbc.BindClientName_For_Order_Cost(ddl_Client_Search);

                string val = "8";
                ddl_ClientName.ValueMember = val.ToString();
                ddl_ClientName.Visible     = false;
                ddl_SubProcess.Visible     = false;
                lbl_Client.Visible         = false;
                lbl_Subprocess.Visible     = false;
            }

            txt_Production_Date.Text = DateTime.Now.ToString();

            if (Order_Id != 0)
            {
                if (Operation == "Insert")
                {
                    load_order_masters();
                    Order_Load();
                    dbc.Bind_Client_Email(ddl_Client_Email, client_Id);
                    txt_Invoice_Order_Number.Visible = true;
                    lbl_Enter_Order.Visible          = true;
                    Group_Order_Numbers.Enabled      = true;

                    txt_Order_Cost_Date.Text = DateTime.Now.ToString();

                    txt_Production_Date.Text = DateTime.Now.ToString();
                }
                else if (Operation == "Update")
                {
                    txt_Invoice_Order_Number.Visible = false;
                    lbl_Enter_Order.Visible          = false;

                    btn_Save.Text = "Edit order Cost";
                    Group_Order_Numbers.Enabled = false;

                    load_order_masters();
                    Order_Load();
                    dbc.Bind_Client_Email(ddl_Client_Email, client_Id);
                    Load_order_Cost_Details();
                }
            }
            bind_OrderList_On_Load();
        }