예제 #1
0
        public uc_Level3Detail(uc_Level3 _parent_form, PRO_tblLevel3DTO item = null)
        {
            CommonEngine.ShowWaitForm(this);
            InitializeComponent();
            Initialize();
            parent_form = _parent_form;

            if (item != null)
                LoadDataToEdit(item);
            CommonEngine.LoadUserPermission("22", txtLevel3ID, btnSaveClose, btnSaveInsert);
        }
예제 #2
0
 private void LoadDataToEdit(PRO_tblLevel3DTO item)
 {
     txtLevel3ID.EditValue = item == null ? null : item.Level3ID;
     txtLevel3Code.EditValue = item == null ? null : item.Level3Code;
     txtLevel3ShortCode.EditValue = item == null ? null : item.Level3ShortCode;
     txtVNName.EditValue = item == null ? null : item.VNName;
     txtENName.EditValue = item == null ? null : item.ENName;
     speRank.EditValue = item == null ? null : item.Rank;
     chkUsed.Checked = item == null ? true : item.Used;
     mmoDescription.EditValue = item == null ? null : item.Description;
     mmoNote.EditValue = item == null ? null : item.Note;
     gluLevel1.EditValue = item == null ? null : item.Level1ID;
     gluLevel2.EditValue = item == null ? null : item.Level2ID;
     if (item == null)
     {
         depError.ClearErrors();
         this.ParentForm.Text = LanguageEngine.GetOpenFormText(this.Name, ConfigEngine.Language, false);
         txtLevel3Code.Focus();
     }
 }