Пример #1
0
 /// <summary>
 /// 删除库区
 /// </summary>
 /// <param name="condition"></param>
 /// <returns></returns>
 public static int Delete_Area(string condition)
 {
     using (var con = GetOpenConnection())
     {
         return(con.Execute(WMS_Area_Dal.Delete_Area(condition)));
     }
 }
Пример #2
0
 /// <summary>
 /// 添加库区
 /// </summary>
 /// <param name="wms_Area_Model"></param>
 /// <returns></returns>
 public static int Insert_Area(WMS_Area_Model wms_Area_Model)
 {
     using (var con = GetOpenConnection())
     {
         return(con.Execute(WMS_Area_Dal.Insert_Area(wms_Area_Model)));
     }
 }
Пример #3
0
 /// <summary>
 /// 修改库区
 /// </summary>
 /// <param name="wms_Area_Model"></param>
 /// <param name="condition"></param>
 /// <returns></returns>
 public static int Update_Area(WMS_Area_Model wms_Area_Model, string condition)
 {
     using (var con = GetOpenConnection())
     {
         return(con.Execute(WMS_Area_Dal.Update_Area(wms_Area_Model, condition)));
     }
 }
Пример #4
0
 /// <summary>
 /// 查询库区
 /// </summary>
 /// <param name="condition"></param>
 /// <returns></returns>
 public static DataTable Select_Area(string condition)
 {
     using (var con = GetOpenConnection())
     {
         return(con.ExecuteDataTable(WMS_Area_Dal.Select_Area(condition)));
     }
 }