Exemple #1
0
 private void ShowInfo(int _id)
 {
     BLL.daikuan_chanye   bll   = new BLL.daikuan_chanye();
     Model.daikuan_chanye model = bll.GetModel(_id);
     txtName.Text = model.name;
     //txtAmount.Text = model.amount.ToString();
     txtAddTime.Text = model.add_time.Value.ToString("yyyy-MM-dd HH:mm:ss");
 }
Exemple #2
0
        private bool DoEdit(int _id)
        {
            bool result = false;

            BLL.daikuan_chanye   bll   = new BLL.daikuan_chanye();
            Model.daikuan_chanye model = bll.GetModel(_id);
            model.name = txtName.Text.Trim();
            //model.amount = Utils.StrToDecimal(txtAmount.Text, 0);
            model.add_time = Utils.StrToDateTime(txtAddTime.Text.Trim());
            if (bll.Update(model))
            {
                AddAdminLog(DTEnums.ActionEnum.Edit.ToString(), "修改产业规模:" + model.name); //记录日志
                result = true;
            }

            return(result);
        }