コード例 #1
0
 private void UpdatePclaAppSys(PclaAppSysObjWrapper source, OPclaAppSys target)
 {
     target.Code          = source.Code;
     target.Name          = source.Name;
     target.Remark        = source.Remark;
     target.LatestVersion = source.Version;
     target.TypeCode      = source.TypeCode;
 }
コード例 #2
0
 private void CopyPclaAppSys(OPclaAppSys source, PclaAppSysObjWrapper target)
 {
     target.Id = source.Id;
     if (this.IsEditMode)
     {
         target.Code     = source.Code;
         target.Name     = source.Name;
         target.Remark   = source.Remark;
         target.Version  = source.LatestVersion;
         target.TypeCode = source.TypeCode;
     }
 }
コード例 #3
0
        public void SetPclaAppSys(OPclaAppSys pclaAppSys)
        {
            _edtPclaAppSys = pclaAppSys;

            if (_isEditMode)
            {
                this.CreatedUser          = pclaAppSys.CrtUsrName;
                this.CreatedDateTime      = pclaAppSys.CrtDateTime.ToString("dd/MM/yyyy hh:mm:ss tt");
                this.LastModifiedUser     = pclaAppSys.MdfUsrName;
                this.LastModifiedDateTime = pclaAppSys.MdfDateTime.ToString("dd/MM/yyyy hh:mm:ss tt");
            }

            if (this.WrapperObj != null)
            {
                this.WrapperObj.ErrorsChanged -= RaiseCanExecuteChanged;
                this.WrapperObj.Save          -= OnSave;
            }
            this.WrapperObj = new PclaAppSysObjWrapper();
            this.WrapperObj.ErrorsChanged += RaiseCanExecuteChanged;
            this.WrapperObj.Save          += OnSave;
            this.WrapperObj.IsCodeFocused  = true;
            CopyPclaAppSys(pclaAppSys, this.WrapperObj);
        }
コード例 #4
0
 public void ClearPclaAppSys()
 {
     _edtPclaAppSys = null;
     _pclaAppSys    = null;
 }