コード例 #1
0
ファイル: R_FrmSailes.cs プロジェクト: XiaoHongMaoZyy/MLL
 void assignMent( )
 {
     model                 = bll.GetModel(model.PQF01);
     textBox1.Text         = model.PQF01;
     comboBox8.Text        = model.PQF02;
     comboBox9.Text        = model.PQF03;
     textBox4.Text         = model.PQF04;
     comboBox10.Text       = model.PQF05;
     textBox5.Text         = model.PQF06.ToString( );
     comboBox4.Text        = model.PQF07;
     comboBox11.Text       = model.PQF08;
     textBox27.Text        = model.PQF09.ToString( );
     textBox28.Text        = model.PQF10.ToString( );
     dateTimePicker1.Value = model.PQF13;
     comboBox6.Text        = model.PQF20;
     comboBox16.Text       = model.PQF21;
     dateTimePicker5.Value = model.PQF56;
     dateTimePicker6.Value = model.PQF58;
     comboBox15.Text       = model.PQF60;
     if (model.PQF23 == "是")
     {
         radioButton3.Checked = true;
     }
     else if (model.PQF23 == "否")
     {
         radioButton4.Checked = true;
     }
     if (model.PQF24 == "是")
     {
         radioButton6.Checked = true;
     }
     else if (model.PQF24 == "否")
     {
         radioButton5.Checked = true;
     }
     textBox3.Text         = model.PQF61;
     dateTimePicker2.Value = model.PQF63;
     dateTimePicker4.Value = model.PQF31;
     dateTimePicker3.Value = model.PQF32;
     dateTimePicker7.Value = model.PQF34;
     if (model.PQF41 == "人民币")
     {
         radioButton7.Checked = true;
         textBox2.Text        = "人民币";
     }
     else if (model.PQF41 == "美元")
     {
         radioButton8.Checked = true;
         textBox2.Text        = "美元";
     }
     comboBox5.Text = model.PQF47;
     textBox8.Text  = model.PQF38.ToString( );
     comboBox7.Text = model.PQF44;
     textBox32.Text = model.PQF45.ToString( );
     textBox31.Text = model.PQF49.ToString( );
     textBox14.Text = model.PQF51;
     textBox6.Text  = model.PQF64;
     other( );
 }
コード例 #2
0
ファイル: R_FrmSailes.cs プロジェクト: XiaoHongMaoZyy/MLL
        //Query
        protected override void select( )
        {
            base.select( );

            model                    = new MulaolaoLibrary.SailesLibrary( );
            saq.StartPosition        = FormStartPosition.CenterScreen;
            saq.Text                 = "R_001 信息查询";
            saq.PassDataBetweenForm += new SelectAll.SailesQueryAll.PassDataBetweenFormHandler(saq_PassDataBetweenForm);
            saq.ShowDialog( );

            if (string.IsNullOrEmpty(model.PQF01) && (numList == null || numList.Count < 1))
            {
                MessageBox.Show("您没有选择任何内容");
            }
            else
            {
                autoQuery( );
            }
        }
コード例 #3
0
 /// <summary>
 /// 编辑一条记录
 /// </summary>
 /// <param name="model"></param>
 /// <returns></returns>
 public bool Update(MulaolaoLibrary.SailesLibrary model, string tableNum, string tableName, string logins, DateTime dtOne, string stateOf, string stateOfOdd)
 {
     return(dao.Update(model, tableNum, tableName, logins, dtOne, stateOf, stateOfOdd));
 }