Beispiel #1
0
        public void SplitTable()
        {
            Maticsoft.Model.ps_point psPointModel  = new Maticsoft.Model.ps_point();
            Maticsoft.Model.ps_point resultPsPoint = EntityAssignValue.BindModelValue <Maticsoft.Model.ps_point, Maticsoft.Model.cjplp>(psPointModel, _cjplpModel);
            // Console.WriteLine("哈哈哈" + resultPsPoint);
            //todo:填充计算的信息
            // resultPsPoint.Exp_No = _exp_no;
            resultPsPoint.Code = _code;
            //todo:补充添加固定信息
            resultPsPoint.Prj_Name = ConfiguInfo.Prj_Name;
            resultPsPoint.Prj_No   = ConfiguInfo.Prj_No;
            //todo:缺失信息忽略

            //增加数据库记录
            Maticsoft.DAL.ps_point psPointDAL = new Maticsoft.DAL.ps_point();

            bool exist = psPointDAL.Exists(resultPsPoint.Exp_No);

            if (!exist)
            {
                psPointDAL.Add(resultPsPoint);
            }
            else
            {
                //todo:2重复的数据,返回给用户
            }
        }
Beispiel #2
0
 /// <summary>
 /// 更新一条数据
 /// </summary>
 public bool Update(Maticsoft.Model.ps_point model)
 {
     return(dal.Update(model));
 }
Beispiel #3
0
 /// <summary>
 /// 增加一条数据
 /// </summary>
 public bool Add(Maticsoft.Model.ps_point model)
 {
     return(dal.Add(model));
 }