Esempio n. 1
0
        /// <summary>
        ///  添加合单信息(调用存储过程)
        /// </summary>
        /// <param name="uniteItem"></param>
        /// <returns></returns>
        public static Boolean AddUniteDoc_I(UniteDocModel uniteItem)
        {
            SqlParameter[] param = new SqlParameter[]
            {
                new SqlParameter("@DocIDs", uniteItem.DocID),
                new SqlParameter("@Weight", uniteItem.Weight),
                new SqlParameter("@Carriage", uniteItem.Carriage),
                new SqlParameter("@Remark", uniteItem.Remark)
            };

            int hs = DBHelper.ExecuteNonQuery("procInsertUniteDoc", param, CommandType.StoredProcedure);

            if (hs == 2)
            {
                return(true);
            }
            return(false);
        }
Esempio n. 2
0
        /// <summary>
        /// 添加合单信息
        /// </summary>
        /// <param name="uniteItem"></param>
        /// <returns></returns>
        public Boolean AddUniteDoc(UniteDocModel uniteItem)
        {
            Boolean temp = false;

            //string sql = "insert into UniteDoc (UniteDocID,Remark,DocID,StoreID,ExpectNum,TotalPV,TotalMoney,IsCheckOut,InceptPerson,InceptAddress,Telephone,Weight,Carriage) "
            //    + "values(@UniteDocID,@Remark,@DocID,@StoreID,@ExpectNum,@TotalPV,@TotalMoney,@IsCheckOut,@InceptPerson,@InceptAddress,@Telephone,@Weight,@Carriage)";
            //SqlParameter[] ps = new SqlParameter[] {
            //    new SqlParameter("@UniteDocID",uniteItem.UniteDocID),
            //    new SqlParameter("@Remark",uniteItem.Remark),
            //    new SqlParameter("@DocID",uniteItem.DocID),
            //    new SqlParameter("@StoreID",uniteItem.StoreID),
            //    new SqlParameter("@ExpectNum",uniteItem.ExpectNum),
            //    new SqlParameter("@TotalPV",uniteItem.TotalPV),
            //    new SqlParameter("@TotalMoney",uniteItem.TotalMoney),
            //    new SqlParameter("@IsCheckOut",uniteItem.IsCheckOut),
            //    new SqlParameter("@InceptPerson",uniteItem.InceptPerson)
            //};
            return(temp);
        }
Esempio n. 3
0
 /// <summary>
 /// 添加合单信息
 /// </summary>
 /// <returns></returns>
 public static bool AddUniteDoc(UniteDocModel unitedocm)
 {
     return(UniteDocDAL.AddUniteDoc_I(unitedocm));
 }