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);
|
}
|
}
|
}
|
}
|