Exemplo n.º 1
0
        /// <summary>
        /// 保存表单数据
        /// </summary>
        public override object GetSaveData()
        {
            CunChuInfo cunchuinfo = new CunChuInfo();
            cunchuinfo.s_cqcs = textBox6.Text.Trim();
            cunchuinfo.s_csmc = textBox1.Text.Trim();
            cunchuinfo.s_date =Convert.ToDateTime(dateTimePicker1.Value.ToString("yyyy-MM-dd 00:00:00"));
            cunchuinfo.s_jlr = textBox9.Text.Trim();
            cunchuinfo.s_sd = textBox4.Text.Trim();
            cunchuinfo.s_sded = textBox7.Text.Trim();
            cunchuinfo.s_sworxw = 0;
            if (!radioButton1.Checked)
            {
                cunchuinfo.s_sworxw = 1;
            }
            cunchuinfo.s_sywdfw = textBox3.Text.Trim();
            cunchuinfo.s_syxdsdfw = textBox2.Text.Trim();
            cunchuinfo.s_wd = textBox5.Text.Trim();
            cunchuinfo.s_wded = textBox8.Text.Trim();

            return cunchuinfo;
        }
 /// <summary>
 /// 更新一条数据
 /// </summary>
 public bool Update(KPS.Model.CunChuInfo model)
 {
     return(dal.Update(model));
 }
 /// <summary>
 /// 增加一条数据
 /// </summary>
 public bool Add(KPS.Model.CunChuInfo model)
 {
     return(dal.Add(model));
 }
Exemplo n.º 4
0
 public CC(CunChuInfo _model)
 {
     ModelData = _model;
     InitializeComponent();
 }