/// <summary> /// 构造函数 /// </summary> public StickyBookForm() { InitializeComponent(); lkpBranch.Properties.DataSource = jobManager.GetDtBranch(); lkpBranch.EditValue = "GAHN_BM"; Query(); }
/// <summary> /// 构造函数,控件的初始化 /// </summary> public JobRecordForm() { InitializeComponent(); Query(); lkpStaff.Properties.DataSource = userManager.GetAllList(); lkpBranch.Properties.DataSource = manager.GetDtBranch(); txtCreator.Text = Models.SqlHelper.Session._LoginName; }
public JobAnalyzeForm() { InitializeComponent(); cbBranch.Properties.DataSource = manager.GetDtBranch(); dStart.DateTime = DateTime.Now.Date.AddDays(-7); dEnd.DateTime = DateTime.Now.Date; }
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; } }
/// <summary> /// 查询 /// </summary> public override void Query() { BLL.JobManager manager = new BLL.JobManager(); gcData.DataSource = manager.GetDtBranch(); }