Esempio n. 1
0
        public void LoadStockRequestDetail_Edit()
        {
//			Rp.StockRequestRepository srp = new Rp.StockRequestRepository();
//			Acms.Core.Domain.StockRequest sr = srp.GetStockRequestById(Convert.ToInt32(this.StockRequestNo));

//			this.sr=sr;
//
//			this.txtBranchFrom.Text = sr.BranchFrom.Id;


            ACMSLogic.StockRequest.StockRequest stockRequest = new ACMSLogic.StockRequest.StockRequest();
            DataTable dt = stockRequest.GetStockRequestById(Convert.ToInt32(this.StockRequestNo));

            if (dt != null)
            {
                this.GetStockRequestDetail();

                this.dateEdit1.EditValue       = Convert.ToDateTime(dt.Rows[0]["dtDate"].ToString()).ToShortDateString();
                this.txtBranchFrom.Text        = dt.Rows[0]["strBranchCodeTo"].ToString();
                this.txtStockRequestNo.Enabled = false;
                this.txtBranchFrom.Enabled     = false;
            }



            GetStockRequestDetail();
        }
Esempio n. 2
0
        public void LoadStockRequestEdit()
        {
            ACMSLogic.StockRequest.StockRequest stockRequest = new ACMSLogic.StockRequest.StockRequest();
            DataTable dt = stockRequest.GetStockRequestById(Convert.ToInt32(this.StockRequestNo));

            if (dt != null)
            {
                this.GetStockRequestDetail();

                this.dateEdit1.EditValue  = Convert.ToDateTime(dt.Rows[0]["dtDate"].ToString()).ToShortDateString();
                this.lkBranchTo.EditValue = dt.Rows[0]["strBranchCodeTo"].ToString();
                this.txtRequestedBy.Text  = dt.Rows[0]["strRemarks"].ToString();
            }

            this.btn_Save.Text         = "Update";
            this.btn_Add.Text          = "Cancel";
            this.btn_Add.Width         = 75;
            this.simpleButton3.Visible = false;

            //Rp.StockRequestRepository srp = new Rp.StockRequestRepository();
            //Acms.Core.Domain.StockRequest sr = srp.GetStockRequestById(Convert.ToInt32(this.StockRequestNo));
        }
Esempio n. 3
0
        public void LoadStockRequestEdit()
        {
            ACMSLogic.StockRequest.StockRequest stockRequest = new ACMSLogic.StockRequest.StockRequest();
            DataTable dt = stockRequest.GetStockRequestById(Convert.ToInt32(this.StockRequestNo));

            if(dt!=null)
            {
                this.GetStockRequestDetail();

                this.dateEdit1.EditValue = Convert.ToDateTime(dt.Rows[0]["dtDate"].ToString()).ToShortDateString();
                this.lkBranchTo.EditValue = dt.Rows[0]["strBranchCodeTo"].ToString();
                this.txtRequestedBy.Text = dt.Rows[0]["strRemarks"].ToString();

            }

            this.btn_Save.Text="Update";
            this.btn_Add.Text="Cancel";
            this.btn_Add.Width = 75;
            this.simpleButton3.Visible=false;

            //Rp.StockRequestRepository srp = new Rp.StockRequestRepository();
            //Acms.Core.Domain.StockRequest sr = srp.GetStockRequestById(Convert.ToInt32(this.StockRequestNo));
        }
Esempio n. 4
0
        public void LoadStockRequestDetail_Edit()
        {
            //			Rp.StockRequestRepository srp = new Rp.StockRequestRepository();
            //			Acms.Core.Domain.StockRequest sr = srp.GetStockRequestById(Convert.ToInt32(this.StockRequestNo));

            //			this.sr=sr;
            //
            //			this.txtBranchFrom.Text = sr.BranchFrom.Id;

            ACMSLogic.StockRequest.StockRequest stockRequest = new ACMSLogic.StockRequest.StockRequest();
            DataTable dt = stockRequest.GetStockRequestById(Convert.ToInt32(this.StockRequestNo));

            if(dt!=null)
            {
                this.GetStockRequestDetail();

                this.dateEdit1.EditValue = Convert.ToDateTime(dt.Rows[0]["dtDate"].ToString()).ToShortDateString();
                this.txtBranchFrom.Text = dt.Rows[0]["strBranchCodeTo"].ToString();
                this.txtStockRequestNo.Enabled=false;
                this.txtBranchFrom.Enabled=false;
            }

            GetStockRequestDetail();
        }