コード例 #1
0
 public void Assign(AMR_MST04 info)
 {
     this.MST04SNO = info.MST04SNO;
     this.MST04CMP = info.MST04CMP;
     this.MST04DON = info.MST04DON;
     this.MST04FLR = info.MST04FLR;
     this.MST04HNO = info.MST04HNO;
     this.MST04NAM = info.MST04NAM;
     this.MST04PHN = info.MST04PHN;
 }
コード例 #2
0
ファイル: frmEdit_AMR_MST04.cs プロジェクト: shine8319/DLS
        public frmEdit_AMR_MST04(AMR_MST04 contact, IDXMenuManager menuManager)
        {
            InitializeComponent();
            this.contact = contact;
            this.bindingContact = contact.Clone();
            InitEditors();
            InitMenuManager(menuManager);


            teMST04CMP.DataBindings.Add("Text", bindingContact, "MST04CMP");
            teMST04DON.DataBindings.Add("Text", bindingContact, "MST04DON");
            teMST04HNO.DataBindings.Add("Text", bindingContact, "MST04HNO");
            teMST04NAM.DataBindings.Add("Text", bindingContact, "MST04NAM");  
            teMST04PHN.DataBindings.Add("Text", bindingContact, "MST04PHN"); 
            
            UpdateCaption();
            InitValidationProvider();
        }
コード例 #3
0
ファイル: AptManage.cs プロジェクト: shine8319/DLS
 protected internal override void ButtonClick(string tag) {
     switch(tag) {
         case TagResources.ContactList:
             UpdateMainView(gridView1);
             ClearSortingAndGrouping();
             break;
         case TagResources.ContactAlphabetical:
             UpdateMainView(gridView1);
             ClearSortingAndGrouping();
             colSno.Group();
             break;
         //case TagResources.ContactByState:
         //    UpdateMainView(gridView1);
         //    ClearSortingAndGrouping();
         //    colUserName.Group();
         //    colCity.SortOrder = DevExpress.Data.ColumnSortOrder.Ascending;
         //    break;
         case TagResources.ContactCard:
             UpdateMainView(layoutView1);
             break;
         case TagResources.FlipLayout:
             layoutControl1.Root.FlipLayout();
             break;
         case TagResources.SnoDelete:
             if(CurrentContact == null) return;
             int index = gridView1.FocusedRowHandle;
             gidControlAptManage.MainView.BeginDataUpdate();
             try
             {
                 DataHelper.AMR_MST04s.Remove(CurrentContact);
             }
             finally
             {
                 gidControlAptManage.MainView.EndDataUpdate();
             }
             if(index > gridView1.DataRowCount - 1) index--;
             gridView1.FocusedRowHandle = index;
             ShowInfo(gridView1);
             break;
         case TagResources.SnoNew:
             AMR_MST04 contact = new AMR_MST04();
             if(EditUser(contact) == DialogResult.OK) {
                 gidControlAptManage.MainView.BeginDataUpdate();
                 try
                 {
                     DataHelper.AMR_MST04s.Add(contact);
                 }
                 finally
                 {
                     gidControlAptManage.MainView.EndDataUpdate();
                 }
                 ColumnView view = gidControlAptManage.MainView as ColumnView;
                 if(view != null) {
                     GridHelper.GridViewFocusObject(view, contact);
                     ShowInfo(view);
                 }
             }
             break;
         case TagResources.SnoEdit:
             EditUser(CurrentContact);
             break;
     }
     UpdateCurrentContact();
     UpdateInfo();
 }
コード例 #4
0
ファイル: AptManage.cs プロジェクト: shine8319/DLS
 DialogResult EditUser(AMR_MST04 contact)
 {
     if(contact == null) return DialogResult.Ignore;
     DialogResult ret = DialogResult.Cancel;
     Cursor.Current = Cursors.WaitCursor;
     using (frmEdit_AMR_MST04 frm = new frmEdit_AMR_MST04(contact, OwnerForm.Ribbon))
     {
         ret = frm.ShowDialog(OwnerForm);
     }
     UpdateCurrentContact();
     Cursor.Current = Cursors.Default;
     return ret;
 }
コード例 #5
0
 public AMR_MST04(AMR_MST04 info)
 {
     this.Assign(info);
 }
コード例 #6
0
ファイル: Data.cs プロジェクト: shine8319/DLS
        public void Assign(AMR_MST04 info)
        {
            this.MST04SNO = info.MST04SNO;
            this.MST04CMP = info.MST04CMP;
            this.MST04DON = info.MST04DON;
            this.MST04FLR = info.MST04FLR;
            this.MST04HNO = info.MST04HNO;
            this.MST04NAM = info.MST04NAM;
            this.MST04PHN = info.MST04PHN;

        }
コード例 #7
0
ファイル: Data.cs プロジェクト: shine8319/DLS
 public AMR_MST04(AMR_MST04 info)
 {
     this.Assign(info);
 }