void assignM( ) { _model = _bll.GetDataTable(_model.IDX); if (_model == null) { return; } textBox5.Text = _model.QZ009.ToString( ); textBox11.Text = _model.QZ015.ToString( ); textBox6.Text = _model.QZ011.ToString( ); textBox7.Text = _model.QZ012.ToString( ); textBox8.Text = _model.QZ017.ToString( ); textBox9.Text = _model.QZ018.ToString( ); textBox10.Text = _model.QZ020.ToString( ); textBox12.Text = _model.QZ022.ToString( ); textBox13.Text = _model.QZ024.ToString( ); textBox14.Text = _model.QZ026.ToString( ); textBox15.Text = _model.QZ028.ToString( ); textBox16.Text = _model.QZ030.ToString( ); textBox17.Text = _model.QZ040.ToString( ); textBox18.Text = _model.QZ016.ToString( ); textBox19.Text = _model.QZ041.ToString( ); textBox21.Text = _model.QZ042.ToString( ); textBox7.Text = _model.QZ043.ToString( ); textBox22.Text = _model.QZ044.ToString( ); textBox23.Text = _model.QZ045.ToString( ); textBox20.Text = _model.QZ012.ToString( ); textBox24.Text = _model.QZ047.ToString( ); textBox25.Text = _model.QZ049.ToString( ); if (_model.QZ002 > DateTime.MinValue && _model.QZ002 < DateTime.MaxValue) { dateTimePicker1.Value = _model.QZ002; } }
protected override void select( ) { base.select( ); _model = new MulaolaoLibrary.TeamLeaderRoutineCheckLibrary( ); SelectAll.TeamLeaderRoutineCheckAll query = new SelectAll.TeamLeaderRoutineCheckAll( ); if (query.ShowDialog( ) == DialogResult.Cancel) { return; } string [] str = query.strList; _model.QZ001 = str [0]; if (str [1].Equals("执行")) { label45.Visible = true; } else { label45.Visible = false; } //query.StartPosition = FormStartPosition.CenterScreen; //query.PassDataBetweenForm += new SelectAll.TeamLeaderRoutineCheckAll.PassDataBetweenFormHandler( query_PassDataBetween ); //query.ShowDialog( ); if (_model.QZ001 != null) { toolSelect.Enabled = toolAdd.Enabled = toolDelete.Enabled = toolUpdate.Enabled = toolReview.Enabled = toolPrint.Enabled = toolExport.Enabled = toolMaintain.Enabled = toolcopy.Enabled = toolLibrary.Enabled = toolStorage.Enabled = true; toolSave.Enabled = toolCancel.Enabled = false; bandedGridView1.OptionsBehavior.Editable = false; Ergodic.SpliEnableFalse(spList); Ergodic.TablePageEnableFalse(pageList); _model = _bll.GetModel(_model.QZ001); if (_model == null) { return; } textBox5.Tag = _model.QZ001; textBox5.Text = _model.QZ009.ToString( ); textBox6.Text = _model.QZ011.ToString( ); textBox7.Text = _model.QZ012.ToString( ); textBox8.Text = _model.QZ017.ToString( ); textBox9.Text = _model.QZ018.ToString( ); textBox10.Text = _model.QZ020.ToString( ); textBox12.Text = _model.QZ022.ToString( ); textBox13.Text = _model.QZ024.ToString( ); textBox14.Text = _model.QZ026.ToString( ); textBox15.Text = _model.QZ028.ToString( ); textBox16.Text = _model.QZ030.ToString( ); textBox1.Text = _model.QZ031; if (_model.QZ032 > DateTime.MinValue && _model.QZ032 < DateTime.MaxValue) { dateTimePicker2.Value = _model.QZ032; } textBox2.Text = _model.QZ033; if (_model.QZ034 > DateTime.MinValue && _model.QZ034 < DateTime.MaxValue) { dateTimePicker3.Value = _model.QZ034; } textBox3.Text = _model.QZ035; if (_model.QZ036 > DateTime.MinValue && _model.QZ036 < DateTime.MaxValue) { dateTimePicker4.Value = _model.QZ036; } if (_model.QZ002 > DateTime.MinValue && _model.QZ002 < DateTime.MaxValue) { dateTimePicker1.Value = _model.QZ002; } textBox4.Text = _model.QZ038; assignMent( ); } }
/// <summary> /// 编辑系数 /// </summary> /// <param name="_model"></param> /// <returns></returns> public bool UpdateOfCoe(MulaolaoLibrary.TeamLeaderRoutineCheckLibrary _model) { return(_dao.UpdateOfCoe(_model)); }
/// <summary> /// 生成报表 /// </summary> /// <param name="dateSt"></param> /// <param name="year"></param> /// <param name="month"></param> /// <param name="_model"></param> /// <returns></returns> public bool Generate(string dateSt, int year, int month, MulaolaoLibrary.TeamLeaderRoutineCheckLibrary _model) { return(_dao.Generate(dateSt, year, month, _model)); }