Ejemplo n.º 1
0
 public makeoverkind_update(data_define.makeover_kind define_makeoverkind)
 {
     InitializeComponent();
     oper_makeoverkind = new operation.o_makeoverkind();
     _definemakeoverkind = new data_define.makeover_kind();
     _definemakeoverkind = define_makeoverkind;
 }
Ejemplo n.º 2
0
        public List<data_define.makeover_kind> makeoverkind_listdt(data_define.makeover_kind model)
        {
            string str1 = "";
            List<data_define.makeover_kind> _listmakeoverkind = new List<data_define.makeover_kind>();
            if (model.makeover_kindid > 0)
            { str1 = "where t_makeover_kind.makeover_kindid=" + model.makeover_kindid + ""; }

            string sql = string.Format("select * from t_makeover_kind " + str1);
            DataTable ddt = sqlconn.DBIBase.Instance.ExecuteDataTable(sql);
            if (ddt.Rows.Count > 0)
            {
                for (int i = 0; i < ddt.Rows.Count; i++)
                {
                    data_define.makeover_kind _model = new data_define.makeover_kind();
                    _model.makeover_kindid = int.Parse(ddt.Rows[i]["makeover_kindid"].ToString());
                    _model.makeover_kindname = ddt.Rows[i]["makeover_kindname"].ToString();
                    _model.remark = ddt.Rows[i]["remark"].ToString();
                    _listmakeoverkind.Add(_model);
                }
            }
            return _listmakeoverkind;
        }
Ejemplo n.º 3
0
 public makeoverkind_add()
 {
     InitializeComponent();
     define_makeoverkind = new data_define.makeover_kind();
     oper_makeoverkind = new operation.o_makeoverkind();
 }