示例#1
0
 internal void Edit(Form form, int id, IMaintainData maintaianControl)
 {
     MaintainData = maintaianControl;
     DataStatus = 2;
     using (var editor = new BlankForm())
     {
         Text = string.Format("{0}Edit Employee Position", "");
         PopulateInterfaceFromModel(id);
         SetEditButton();
         editor.ShowDialogEditor(form, this);
     }
 }
示例#2
0
 internal void Create(Form form, IMaintainData maintaianControl)
 {
     MaintainData = maintaianControl;
     var maintainData = form as IMainConfiguration;
     if (maintainData != null)
     {
         createdBy.Text = maintainData.CurrentUserName;
         createdDate.Value = DateTime.Now;
     }
     DataStatus = 1;
     using (var editor = new BlankForm())
     {
         Text = string.Format("{0}Create New Employee Position", "");
         SetCreateButton();
         editor.ShowDialogEditor(form, this);
     }
 }
        internal DialogResult Create(Form form, IMaintainData maintaianControl)
        {
            MaintainData = maintaianControl;
            var maintainData = form as IMainConfiguration;
            if (maintainData != null)
            {
                //createdBy.Text = maintainData.CurrentUserName;
                //createdDate.Value = DateTime.Now;
            }
            DataStatus = 1;

            using (var editor = new BlankForm())
            {
                Text = string.Format("{0}Add Payroll Item", "");
                SetCreateButton();
                editor.ShowDialogEditor(form, this);
                return DialogResult;
            }
        }