沈泽
2021-11-01 cb7d88df22d0e2a1aa6987c33c93c3378f1c2837
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
 
namespace DAL
{
    public class ClsA3_Currency_Ctl:DBUtility.ClsGy_Base_Ctl 
    {
        SQLHelper.ClsCN oCn = new SQLHelper.ClsCN(); 
 
        public Model.ClsA3_Currency_Model oModel ;
        //新增
        public override bool AddNew()
        {
            
            try
            {
                oCn.BeginTran();
                base.DeleteByNumber(oModel.HNumber);
                oCn.RunProc("Insert into " + MvarItemKey + " " +
                    " (HItemID,HNumber) " +
                    " Values("+oModel.HItemID.ToString()+",'"+oModel.HNumber+"')", ref DBUtility.ClsPub.sExeReturnInfo);
                oCn.Commit();
                return true;
            }
            catch (Exception e)
            {
                oCn.RollBack();
                throw (e);
            }
        }
         
        //构造函数
        public ClsA3_Currency_Ctl()
        {
            MvarItemKey = "A3_Currency_Extend";
            MvarReportTitle = "币别设置";
            oModel = new Model.ClsA3_Currency_Model();
        } 
    }
}