using System;
|
using System.Collections.Generic;
|
using System.Text;
|
using System.Data;
|
|
namespace DAL
|
{
|
public class ClsA3_Employee_Ctl:DBUtility.ClsGy_Base_Ctl
|
{
|
SQLHelper.ClsCN oCn = new SQLHelper.ClsCN();
|
|
public Model.ClsA3_Employee_Model oModel ;
|
//新增
|
public override bool AddNew()
|
{
|
|
try
|
{
|
oCn.BeginTran();
|
base.DeleteByNumber(oModel.HNumber);
|
oCn.RunProc("Insert into " + MvarItemKey + " " +
|
" (HItemID,HNumber,HBarCode) " +
|
" Values("+oModel.HItemID.ToString()+",'"+oModel.HNumber+"','"+oModel.HBarCode+"')", ref DBUtility.ClsPub.sExeReturnInfo);
|
oCn.Commit();
|
return true;
|
}
|
catch (Exception e)
|
{
|
oCn.RollBack();
|
throw (e);
|
}
|
}
|
|
//构造函数
|
public ClsA3_Employee_Ctl()
|
{
|
MvarItemKey = "A3_Employee_Extend";
|
MvarReportTitle = "职员设置";
|
oModel = new Model.ClsA3_Employee_Model();
|
}
|
}
|
}
|