Exemplo n.º 1
0
        public ActionResult AcceptClick(PSS_InWarehouseDetail obj)
        {
            int isOk = default(int);

            isOk = ipss_inwarehousedetailbll.Insert(obj);
            return(Content(isOk.ToString()));
        }
Exemplo n.º 2
0
 public int Delete(PSS_InWarehouseDetail obj)
 {
     using (Conn)
     {
         string query = @"DELETE FROM PSS_InWarehouseDetail WHERE ID = @ID";
         return(Conn.Execute(query, obj));
     }
 }
Exemplo n.º 3
0
        public int Insert(PSS_InWarehouseDetail obj)
        {
            obj.InWarehouseSum = obj.InWarehousePrice * obj.InWarehouseCount;
            using (Conn)
            {
                string query = @"INSERT INTO PSS_InWarehouseDetail 
									VALUES(@IWID,@IWWay,@PhaCode,@OrginID,@PhaNo,@PhaExpiry,@InWarehouseCount,@InWarehousePrice,@InWarehouseSum)"                                    ;
                return(Conn.Execute(query, obj));
            }
        }
Exemplo n.º 4
0
 public int Delete(PSS_InWarehouseDetail obj)
 {
     return(dal.Delete(obj));
 }
Exemplo n.º 5
0
 public int Insert(PSS_InWarehouseDetail obj)
 {
     return(dal.Insert(obj));
 }