예제 #1
0
 /// <summary>
 /// 删除客户
 /// </summary>
 /// <param name="condition"></param>
 /// <returns></returns>
 public static int Delete_Client(string condition)
 {
     using (var con = GetOpenConnection())
     {
         return(con.Execute(WMS_Client_Dal.Delete_Client(condition)));
     }
 }
예제 #2
0
 /// <summary>
 /// 插入客户
 /// </summary>
 /// <param name="wms_Client_Model"></param>
 /// <returns></returns>
 public static int Insert_Client(WMS_Client_Model wms_Client_Model)
 {
     using (var con = GetOpenConnection())
     {
         return(con.Execute(WMS_Client_Dal.Insert_Client(wms_Client_Model)));
     }
 }
예제 #3
0
 /// <summary>
 /// 更新客户
 /// </summary>
 /// <param name="wms_Client_Model"></param>
 /// <param name="condition"></param>
 /// <returns></returns>
 public static int Update_Client(WMS_Client_Model wms_Client_Model, string condition)
 {
     using (var con = GetOpenConnection())
     {
         return(con.Execute(WMS_Client_Dal.Update_Client(wms_Client_Model, condition)));
     }
 }
예제 #4
0
 /// <summary>
 /// 查询客户
 /// </summary>
 /// <param name="condition"></param>
 /// <returns></returns>
 public static DataTable Select_Client(string condition)
 {
     using (var con = GetOpenConnection())
     {
         return(con.ExecuteDataTable(WMS_Client_Dal.Select_Client(condition)));
     }
 }