Example #1
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 #2
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());
        }
        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)
        {
            //ex2.Visible = false;

            tblimport.Visible   = true;
            tbl_Add_New.Visible = false;
            tr_AddNew.Visible   = false;
            dbc.BindState(ddl_State);
            dbc.BindState(ddl_State_Wise);
            Grdiview_Bind_Tax_County_Link();
        }
    }
        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();
            }
        }
        private void Create_County_Load(object sender, EventArgs e)
        {
            dbc.BindState(ddl_State);

            BindGridCounty();
            ddl_State.Focus();
            clear();
            dbc.BindState(ddl_SearchbyState);
            dbc.BindCounty(ddl_searchCounty, int.Parse(ddl_SearchbyState.SelectedValue.ToString()));
        }
 public Abstractor_State_County_Details(string Abstractor_Name, string abstractor_id, int User_Id)
 {
     InitializeComponent();
     userid                  = User_Id;
     ABSTRACTOR_NAME         = Abstractor_Name.ToString();
     lbl_AbstractorName.Text = ABSTRACTOR_NAME.ToString();
     tabControl1.TabIndex    = 0;
     ABSTRACT_ID             = abstractor_id.ToString();
     dbc.BindState(ddl_State);
     dbc.BindState(ddl_Search_State);
     //dbc.Bind_Abstract_County(ddl_Multiple_County_State, ABSTRACT_ID, int.Parse(ddl_Search_State.SelectedIndex.ToString()));
     //dbc.Bind_Abstractor_County(ddl_Multiple_County_State);
     Gridview_Bind_State_County_Details();
     Gridview_Bind_Multiple_CountyAbstractor_Cost_Tat_Befor();
 }
        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 #7
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 State_County_Setup_Load(object sender, EventArgs e)
 {
     Load_Data_List_Items();
     dbc.BindState(ddl_State);
     dbc.Bind_List_For_Auto_Allocation(ddl_ListName);
     Bind_Grid_Order_Type_Abs_List();
     tabControl1.SelectedIndex = 0;
 }
Example #9
0
        public void load_order_masters()
        {
            if (User_Role == "1" || userid == 260 || userid == 179)
            {
                dbc.BindClientName(ddl_ClientName);
                dbc.BindClientName(ddl_Client_Search);
            }
            else
            {
                dbc.BindClientNo_for_Report(ddl_ClientName);
                dbc.BindClientNo_for_Report(ddl_Client_Search);
            }
            dbc.BindOrderType(ddl_ordertype);


            dbc.BindState(ddl_State);
            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)
            {
                if (User_Role == "1" || userid == 260 || userid == 179)
                {
                    dbc.BindSubProcessName(ddl_SubProcess, client_Id);
                }
                else
                {
                    dbc.BindSubProcessNumber(ddl_SubProcess, client_Id);
                }

                // ddl_SubProcess.SelectedValue =Convert.ToString(SubprocessId);
                ddl_SubProcess.Focus();
            }
        }
        private void Abstractor_View_Load(object sender, EventArgs e)
        {
            Color toolover = System.Drawing.ColorTranslator.FromHtml("#6E828E");

            grd_Services.ColumnHeadersDefaultCellStyle.BackColor = toolover;
            grd_Services.EnableHeadersVisualStyles = false;
            cbo_colmn.SelectedIndex = 0;
            dbc.BindState(ddl_State);

            dbc.BindAbstractor_Order_Serarh_Type(ddl_Product_Type);
        }
Example #11
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;
            }
        }
    }
        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 #13
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 #14
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();
            }
        }
 private void StateWise_UserNameAndPassword_Load(object sender, EventArgs e)
 {
     dbc.BindState(cmb_State);
 }
 private void StateCountyUserPasswordEntry_Load(object sender, EventArgs e)
 {
     dbc.BindState(cmb_State);
 }
Example #17
0
 private void Create_Client_Proposal_Load(object sender, EventArgs e)
 {
     AddParent();
     dbc.BindState(ddl_State);
 }