Ejemplo n.º 1
0
        /// <summary>
        /// 构造函数
        /// </summary>
        public StickyBookForm()
        {
            InitializeComponent();

            lkpBranch.Properties.DataSource = jobManager.GetDtBranch();
            lkpBranch.EditValue             = "GAHN_BM";
            Query();
        }
Ejemplo n.º 2
0
        /// <summary>
        /// 构造函数,控件的初始化
        /// </summary>
        public JobRecordForm()
        {
            InitializeComponent(); Query();

            lkpStaff.Properties.DataSource  = userManager.GetAllList();
            lkpBranch.Properties.DataSource = manager.GetDtBranch();
            txtCreator.Text = Models.SqlHelper.Session._LoginName;
        }
Ejemplo n.º 3
0
        public JobAnalyzeForm()
        {
            InitializeComponent();

            cbBranch.Properties.DataSource = manager.GetDtBranch();
            dStart.DateTime = DateTime.Now.Date.AddDays(-7);
            dEnd.DateTime   = DateTime.Now.Date;
        }
Ejemplo n.º 4
0
        public JobQueryForm()
        {
            InitializeComponent();

            cbBranch.Properties.DataSource      = manager.GetDtBranch();
            tlJobCategory.Properties.DataSource = manager.GetAllListCategory();
            dStart.DateTime = DateTime.Now.Date.AddDays(-7);
            dEnd.DateTime   = DateTime.Now.Date;

            Query();
        }
Ejemplo n.º 5
0
        /// <summary>
        /// 构造函数
        /// </summary>
        /// <param name="md">实体</param>
        public JobSolutionForm(Models.ys_JobRecord md)
        {
            InitializeComponent();

            cbBranch.Properties.DataSource      = manager.GetDtBranch();
            tlJobCategory.Properties.DataSource = manager.GetAllListCategory();
            cbStaff.Properties.DataSource       = Usermanager.GetAllList();

            if (md != null)
            {
                model = md;
                cbBranch.EditValue         = model.BranchId.Trim();
                txtContact.Text            = model.Contact;
                cbStaff.EditValue          = model.StaffId;
                this.txtDescription.Text   = model.Description;
                this.txtCreatorName.Text   = model.CreatorName;
                this.txtStartTime.DateTime = model.CreateTime;
            }
        }
Ejemplo n.º 6
0
 /// <summary>
 /// 查询
 /// </summary>
 public override void Query()
 {
     BLL.JobManager manager = new BLL.JobManager();
     gcData.DataSource = manager.GetDtBranch();
 }