Exemple #1
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();
        }
        /// <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;
            }
        }
Exemple #3
0
 /// <summary>
 /// 查询功能
 /// </summary>
 public override void Query()
 {
     Datalist = manager.GetAllListCategory();
     tl_PID.Properties.DataSource = tl_Type.DataSource = Datalist;
     tl_Type.ExpandAll();
 }