示例#1
0
        //@Dưỡng Bùi -- Show thông tin NTKT lên UI
        public void setValueItemForNTKT(string IDNTKT)
        {
            NTKT nTKT = new NTKT();

            nTKT.GetObjectNTKT(IDNTKT, ref nTKT);
            string idPO = null, poNumber = null, idContract = null;
            int    ret = nTKT.getPOinfor(IDNTKT, ref idPO, ref poNumber, ref idContract);
            PO     pO = new PO();
            string namecontract = null, KHMS = null;

            pO.DisplayPO(idPO, ref namecontract, ref KHMS);
            this.txbKHMS.Text        = (string)KHMS;
            this.txbIDContract.Text  = (string)idContract;
            this.txbPOID.Text        = (string)nTKT.POID;
            this.txbPONumber.Text    = (string)poNumber;
            this.txbNTKTID.Text      = (string)nTKT.ID_NTKT;
            dateTimePickerNTKT.Value = Convert.ToDateTime(nTKT.DateDuKienNTKT);
        }
示例#2
0
        public void SetValueItemForPO(string idPO)
        {
            PO     pO = new PO();
            string namecontract = null, KHMS = null;

            pO.DisplayPO(idPO, ref namecontract, ref KHMS);
            pO.GetDisplayPO(idPO, ref pO);
            this.txbKHMS.Text = KHMS;

            this.txbIDContract.Text       = pO.IdContract;
            this.txbPOCode.Text           = pO.IDPO;
            this.txbPOName.Text           = pO.PONumber;
            TimePickerDateCreatedPO.Value = Convert.ToDateTime(pO.DateCreatedPO);
            this.txbNumberDevice.Text     = pO.NumberOfDevice.ToString();
            TimePickerDateConfirmPO.Value = Convert.ToDateTime(pO.DurationConfirmPO);
            TimepickerDefaultActive.Value = Convert.ToDateTime(pO.DefaultActiveDatePO);
            TimePickerDeadLinePO.Value    = Convert.ToDateTime(pO.DeadLinePO);
            this.txbValuePO.Text          = pO.TotalValuePO.ToString();
            return;
        }