/// <summary> /// 批量更新OrderCheckMaster状态 /// </summary> public virtual void BatchUpdateOrderCheckMasterStatus(OrderCheckMaster msg, List <int> SysNoList) { ///未选择sysno则将所有的都更新为无效状态 if (SysNoList.Count == 0) { OrderCheckMasterDA.UpdateOrderCheckMasterAllDisable(msg); } else { ///获取现有的自动审单列表 List <OrderCheckMaster> currentList = OrderCheckMasterDA.GetCurrentOrderCheckMasterList(msg.CompanyCode); foreach (var entity in currentList) { if (SysNoList.Exists(x => x == entity.SysNo))//更新为有效状态 { if (entity.Status != OrderCheckStatus.Valid) { entity.Status = OrderCheckStatus.Valid; OrderCheckMasterDA.UpdateOrderCheckMaster(entity); } } else//更新为无效状态 { if (entity.Status != OrderCheckStatus.Invalid) { entity.Status = OrderCheckStatus.Invalid; OrderCheckMasterDA.UpdateOrderCheckMaster(entity); } } } } }
public virtual void UpdateOrderCheckMaster(OrderCheckMaster entity) { DataCommand cmd = DataCommandManager.GetDataCommand("UpdateOrderCheckMaster"); cmd.SetParameterValue("@Status", (int)entity.Status); cmd.SetParameterValueAsCurrentUserSysNo("@LastEditUserSysNo"); cmd.SetParameterValue("@SysNo", entity.SysNo); cmd.ExecuteNonQuery(); }
public virtual void UpdateOrderCheckMasterAllDisable(OrderCheckMaster entity) { DataCommand cmd = DataCommandManager.GetDataCommand("UpdateOrderCheckMasterAllDisable"); cmd.SetParameterValue("@Status", 1); cmd.SetParameterValueAsCurrentUserSysNo("@LastEditUserSysNo"); cmd.SetParameterValue("@CompanyCode", entity.CompanyCode); cmd.ExecuteNonQuery(); }
public virtual OrderCheckMaster Creat(OrderCheckMaster entity) { DataCommand cmd = DataCommandManager.GetDataCommand("InsertOrderCheckMaster"); cmd.SetParameterValue <OrderCheckMaster>(entity); cmd.ExecuteNonQuery(); entity.SysNo = Convert.ToInt32(cmd.GetParameterValue("@SysNo")); return(entity); }
public OrderCheckMaster CreateOrderCheckMaster(OrderCheckMaster msg) { return(ObjectFactory <CSToolAppService> .Instance.CreateOrderCheckMaster(msg)); }
/// <summary> /// 创建OrderCheckMaster /// </summary> /// <param name="msg"></param> /// <returns></returns> public virtual OrderCheckMaster CreateOrderCheckMaster(OrderCheckMaster msg) { return(ObjectFactory <OrderCheckMasterProcessor> .Instance.CreateOrderCheckMaster(msg)); }
/// <summary> /// 批量更新OrderCheckMaster信息的状态 /// </summary> public virtual void BatchUpdateOrderCheckMasterStatus(OrderCheckMaster msg, List <int> SysNoList) { ObjectFactory <OrderCheckMasterProcessor> .Instance.BatchUpdateOrderCheckMasterStatus(msg, SysNoList); }
/// <summary> /// 创建OrderCheckMaster /// </summary> /// <param name="msg"></param> /// <returns></returns> public virtual OrderCheckMaster CreateOrderCheckMaster(OrderCheckMaster msg) { return(ObjectFactory <IOrderCheckMasterDA> .Instance.Creat(msg)); }
public List <OrderCheckItem> GetOrderCheckItemList(OrderCheckMaster masterInfo) { return(OrderCheckItemDA.GetOrderCheckItem(masterInfo.CheckType, masterInfo.CompanyCode)); }