Пример #1
0
        public DataSet BindConditions()
        {
            DataSet dsConditions = new DataSet();

            dsConditions = new POSystemDataHandler().BindConditions();
            return(dsConditions);
        }
Пример #2
0
        protected void btnSearchBudgetCode_Click(object sender, EventArgs e)
        {
            divBudgCode.Visible      = true;
            lblUpdateMessage.Visible = false;

            DataSet ds = new DataSet();

            try
            {
                DataSet dsDept = new POSystemDataHandler().GetDepartment();
                ddlDepartment.DataSource = dsDept;
                ddlDepartment.DataBind();

                DataSet dsOrderClass = new POMain().GetOrderClassification(1);
                ddlOrderClassification.DataSource = dsOrderClass;
                ddlOrderClassification.DataBind();

                DataSet dsStation = new POSystemDataHandler().GetStation();
                ddlStation.DataSource = dsStation;
                ddlStation.DataBind();
                ddlStation.Items.Insert(0, new ListItem("--Select--", "0"));

                string budgetCode = txtSearchBudgetCode.Text;
                ds = new POMain().GetBudgetCodeDetails(budgetCode);
                lblBudgetCodeID.Text                 = ds.Tables[0].Rows[0]["BudgetCodeID"].ToString();
                txtBudgetCode.Text                   = ds.Tables[0].Rows[0]["BudgetCode"].ToString();
                ddlDepartment.SelectedValue          = ds.Tables[0].Rows[0]["Department"].ToString();
                ddlOrderClassification.SelectedValue = ds.Tables[0].Rows[0]["OrderClassification"].ToString();
                ddlStation.SelectedValue             = ds.Tables[0].Rows[0]["Station"] != DBNull.Value ? ds.Tables[0].Rows[0]["Station"].ToString() : "0";
                txtDescription.Text                  = ds.Tables[0].Rows[0]["Description"].ToString();
            }

            catch (Exception ex)
            { }
        }
Пример #3
0
        private void FillProject()
        {
            DataSet dsProject = new POSystemDataHandler().GetProject();

            drpAdvSearchProject.DataSource = dsProject;
            drpAdvSearchProject.DataBind();

            drpAdvSearchProject.Items.Insert(0, new ListItem("--Select--", "0"));
        }
Пример #4
0
        private void FillSuppliers()
        {
            DataSet dsSuppliers = new POSystemDataHandler().GetSupplier();

            drpAdvSearchSupplier.DataSource = dsSuppliers;
            drpAdvSearchSupplier.DataBind();

            drpAdvSearchSupplier.Items.Insert(0, new ListItem("--Select--", "0"));
        }
Пример #5
0
        private void FillShipTo()
        {
            DataSet dsShip = new POSystemDataHandler().GetShipTo();

            drpAdvSearchShipTo.DataSource = dsShip;
            drpAdvSearchShipTo.DataBind();

            drpAdvSearchShipTo.Items.Insert(0, new ListItem("--Select--", "0"));
        }
Пример #6
0
        private void FillType()
        {
            DataSet dsType = new POSystemDataHandler().GetType();

            ddlPOType.DataSource = dsType;
            ddlPOType.DataBind();

            ddlPOType.Items.Insert(0, new ListItem("--Select--", "0"));
        }
Пример #7
0
        private void GetRequester()
        {
            DataSet dsRequester = new POSystemDataHandler().GetRequester();

            drpAdvSearchRequester.DataSource = dsRequester;
            drpAdvSearchRequester.DataBind();

            drpAdvSearchRequester.Items.Insert(0, new ListItem("--Select--", "0"));
        }
Пример #8
0
        private void FillStation()
        {
            DataSet dsStation = new POSystemDataHandler().GetStation();

            drpAdvSearchStation.DataSource = dsStation;
            drpAdvSearchStation.DataBind();

            drpAdvSearchStation.Items.Insert(0, new ListItem("--Select--", "0"));
        }
Пример #9
0
        //protected override void OnInit(EventArgs e)
        //{
        //    try
        //    {
        //        base.OnInit(e);
        //        //Form.InnerHtml

        //    }
        //    catch (Exception ex)
        //    {
        //        Response.Write(ex.Message);
        //    }
        //}

        private void FillDepartment()
        {
            DataSet dsDept = new POSystemDataHandler().GetDepartment();

            ddlDept.DataSource = dsDept;
            ddlDept.DataBind();

            ddlDept.Items.Insert(0, new ListItem("--Select--", "0"));
        }
Пример #10
0
        private void FillBudhetCodeInsertValues()
        {
            try
            {
                DataSet dsDept = new POSystemDataHandler().GetDepartment();
                ddlInsertDepartment.DataSource = dsDept;
                ddlInsertDepartment.DataBind();
                ddlInsertDepartment.Items.Insert(0, new ListItem("--Select--", "0"));

                DataSet dsOrderClass = new POMain().GetOrderClassification(1);
                ddlInsertOrderClassification.DataSource = dsOrderClass;
                ddlInsertOrderClassification.DataBind();
                ddlInsertOrderClassification.Items.Insert(0, new ListItem("--Select--", "0"));

                DataSet dsStation = new POSystemDataHandler().GetStation();
                ddlInsertStation.DataSource = dsStation;
                ddlInsertStation.DataBind();
                ddlInsertStation.Items.Insert(0, new ListItem("--Select--", "0"));
            }

            catch (Exception e)
            { }
        }
Пример #11
0
        public int UpdateShipToDetails(POMain poMain)
        {
            POSystemDataHandler dataHandler = new POSystemDataHandler();

            return(dataHandler.UpdateShipToDetails(this.ShipToID, this.ShipToName, this.VAT, this.ShipToAddress, this.NewAddress, this.CreatedBy));
        }
Пример #12
0
        public int DeleteShipToDetails(POMain poMain)
        {
            POSystemDataHandler dataHandler = new POSystemDataHandler();

            return(dataHandler.DeleteShipToDetails(this.ShipToID, this.CreatedBy));
        }
Пример #13
0
        public int UpdatePOFor5thLevelApprovalForCFOCOO(Int64 poNumber, string status1, string comment, string empName)
        {
            POSystemDataHandler dataHandler = new POSystemDataHandler();

            return(dataHandler.UpdatePOFor5thLevelApprovalForCFOCOO(poNumber, status1, comment, empName));
        }
Пример #14
0
        public DataSet GetPOForClosed()
        {
            DataSet dsClosedPO = new POSystemDataHandler().GetPOForClosed();

            return(dsClosedPO);
        }
Пример #15
0
        public int UpdateSupplierDetails(POMain poMain)
        {
            POSystemDataHandler dataHandler = new POSystemDataHandler();

            return(dataHandler.UpdateSupplierDetails(this.SupplierID, this.MainNo, this.FaxNo, this.ContactPerson, this.PhNo, this.ContactPerson1, this.PhNo1, this.Address1, this.Address2, this.Address3, this.Address4, this.Address5, this.Country, this.Comment, this.Term, this.CreatedBy, this.Received));
        }
Пример #16
0
        public int DeleteRequester(POMain poMain)
        {
            POSystemDataHandler dataHandler = new POSystemDataHandler();

            return(dataHandler.DeleteRequester(this.RequesterID, this.CreatedBy));
        }
Пример #17
0
        public DataSet GetShipToDetailsByShipToId(int shipTo)
        {
            DataSet dsPO = new POSystemDataHandler().GetShipToDetailsByShipToId(shipTo);

            return(dsPO);
        }
Пример #18
0
        public DataSet GetPOByAdvSearch(int?requester, int?station, int?shipTo, int?supplier, int?dept, int?project, string comment, string circitID)
        {
            DataSet dsPO = new POSystemDataHandler().GetPOByAdvSearch(requester, station, shipTo, supplier, dept, project, comment, circitID);

            return(dsPO);
        }
Пример #19
0
        public DataSet GetApproverList(int roleID, int?deptID)
        {
            DataSet dsApprover = new POSystemDataHandler().GetApproverList(roleID, deptID);

            return(dsApprover);
        }
Пример #20
0
        public DataSet GetSupplierDetails(int supplierID)
        {
            DataSet dsSupplierDetails = new POSystemDataHandler().GetSupplierDetails(supplierID);

            return(dsSupplierDetails);
        }
Пример #21
0
        public DataSet BindShipTerm()
        {
            DataSet dsShipTerm = new POSystemDataHandler().BindShipTerm();

            return(dsShipTerm);
        }
Пример #22
0
        public int InsertShipTo(POMain poMain)
        {
            POSystemDataHandler dataHandler = new POSystemDataHandler();

            return(dataHandler.InsertShipTo(this.ShipToName, this.VAT, this.ShipToAddress, this.NewAddress, this.CreatedBy));
        }
Пример #23
0
        public int InsertRequester(POMain poMain)
        {
            POSystemDataHandler dataHandler = new POSystemDataHandler();

            return(dataHandler.InsertRequester(this.RequesterName, this.Email, this.UserID, this.Role, this.CreatedBy));
        }
Пример #24
0
        public DataSet GetPOForPreApproval(string deptIDs, string userName)
        {
            DataSet dsPO = new POSystemDataHandler().GetPOForPreApproval(deptIDs, userName);

            return(dsPO);
        }
Пример #25
0
        public int InsertProject(POMain poMain)
        {
            POSystemDataHandler dataHandler = new POSystemDataHandler();

            return(dataHandler.InsertProject(this.ProjectName, this.CreatedBy));
        }
Пример #26
0
        public DataSet GetPOForDeputyApproval(string userName)
        {
            DataSet dsPO = new POSystemDataHandler().GetPOForDeputyApproval(userName);

            return(dsPO);
        }
Пример #27
0
        public int InsertSupplier(POMain poMain)
        {
            POSystemDataHandler dataHandler = new POSystemDataHandler();

            return(dataHandler.InsertSupplier(this.SupplierName, this.MainNo, this.FaxNo, this.ContactPerson, this.PhNo, this.ContactPerson1, this.PhNo1, this.Address1, this.Address2, this.Address3, this.Address4, this.Address5, this.Country, this.Comment, this.Term, this.CreatedBy));
        }
Пример #28
0
        public DataSet GetAdditionalBillingAddress(int city)
        {
            DataSet dsAddnBillingAdd = new POSystemDataHandler().GetAdditionalBillingAddress(city);

            return(dsAddnBillingAdd);
        }
Пример #29
0
        //For Tail/Circuit/Cross-Connect PO HOD
        public DataSet GetPOForTailCircuitCrossHODApproval(string deptIDs, string userName)
        {
            DataSet dsPO = new POSystemDataHandler().GetPOForTailCircuitCrossHODApproval(deptIDs, userName);

            return(dsPO);
        }
Пример #30
0
        public int UpdatePOToHODApproved(Int64 poNumber, string comment, string empName)
        {
            POSystemDataHandler dataHandler = new POSystemDataHandler();

            return(dataHandler.UpdatePOToHODApproved(poNumber, comment, empName));
        }