using System;
|
using System.Collections.Generic;
|
using System.Text;
|
using System.Data;
|
|
namespace DAL
|
{
|
public class ClsK3_SellStyle_Ctl:DBUtility.ClsGy_Base_Ctl
|
{
|
SQLHelper.ClsCN oCn = new SQLHelper.ClsCN();
|
|
public Model.ClsK3_SellStyle_Model oModel ;
|
//新增
|
public override bool AddNew()
|
{
|
try
|
{
|
oCn.BeginTran();
|
base.DeleteByID(oModel.HItemID);
|
oCn.RunProc("Insert into " + MvarItemKey + " " +
|
" (HItemID,HNumber,HRemark) " +
|
" Values(" + oModel.HItemID.ToString() + ",'" + oModel.HNumber + "','" + oModel.HRemark.ToString() + "')", ref DBUtility.ClsPub.sExeReturnInfo);
|
oCn.Commit();
|
return true;
|
}
|
catch (Exception e)
|
{
|
oCn.RollBack();
|
throw (e);
|
}
|
}
|
|
|
//构造函数
|
public ClsK3_SellStyle_Ctl()
|
{
|
MvarItemKey = "K3_SellStyle_Extend";
|
MvarReportTitle = "K3销售方式";
|
oModel = new Model.ClsK3_SellStyle_Model();
|
}
|
}
|
}
|