Пример #1
0
        protected override void ShowObjectInformation()
        {
            request            = RequestServices.GetById(IntId);
            NoiDungChiDao.Text = request.RequestContent;
            ThoiHan.Text       = request.RequiredDate.ToDateString();

            LanhDaoYeuCau.SelectByValue(request.RequesterID);

            foreach (var tracker in request.Trackers)
            {
                ChuyenVienTheoDoi.SelectByValue(tracker.UserID, multipleChoice: true);
            }

            foreach (var department in request.Departments)
            {
                DonViThucHien.SelectByValue(department.DepartmentID, multipleChoice: true);
            }

            if (request.IsProvinceRequest)
            {
                NoiDungChiDao.Enabled = false;
            }

            if (request.Performs.Count > 0)
            {
                XacNhanHoanThanh.Checked = request.Performs.First().IsFinishedConfirm;
            }
        }
Пример #2
0
        protected override void SetDefaultValueOnCreate()
        {
            ChuyenVienTheoDoi.SelectByValue(Sessions.UserID);

            if (Parameters.Pid > 0)
            {
                LanhDaoYeuCau.SelectByValue(DocumentServices.GetById(Parameters.Pid)?.SignerID);
            }

            XacNhanHoanThanh.Checked = true;
        }