yusijie
2024-04-10 99136e90515aae6031bf6ba870835774735172b4
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
 
namespace DAL
{
    public class ClsCrm_CounterWorkerBill_View:DBUtility.ClsGy_Base_View
    {
        
        //
        public Model.ClsCrm_CounterWorkerBillMain omodel = new Model.ClsCrm_CounterWorkerBillMain();
        SQLHelper.ClsCN oCn = new SQLHelper.ClsCN(); 
        public ClsCrm_CounterWorkerBill_View()
        {
            base.MvarReportTitle = "竞争对手设置";
            base.MvarItemKey = "Crm_CounterWorkerBillMain";
            base.SQLName = "Select HInterID,HBillNo 竞争对手代码,HComName 竞争对手 from Crm_CounterWorkerBillMain Order by HInterID ";
        }
        //
        public void Dispose()
        {
            GC.SuppressFinalize(this);
        }
        //
         
        //返回项目信息
        public override bool GetInfoByID(Int64 sItemID)
        {
            DataSet DS ;
            try
            {
                DS = oCn.RunProcReturn("Select * from " + MvarItemKey + " Where HInterID='" + sItemID + "'", MvarItemKey, ref DBUtility.ClsPub.sExeReturnInfo);
                if (DS.Tables[0].Rows.Count  == 0)
                    return false;
                else
                {
                    return GetInfo(DS);
                }
            }
            catch (Exception e)
            {
                throw (e);
            }
        }
 
        //返回项目信息
        public override bool GetInfo(DataSet Ds)
        {
            try
            {
                omodel = new Model.ClsCrm_CounterWorkerBillMain();
                omodel.HInterID = DBUtility.ClsPub.isLong(Ds.Tables[0].Rows[0]["HInterID"]);
                omodel.HComName = DBUtility.ClsPub.isStrNull(Ds.Tables[0].Rows[0]["HComName"]);
               
                //
                return true;
 
            }
            catch (Exception e)
            {
                throw (e);
            }
        }
    }
}