public static List <PromotionCodeEntity> QuerySingle(SettingCustomerEntity query) { DataCommand command = DataCommandManager.GetDataCommand("Promotion_QuerySinglePromotionCode"); command.SetParameterValue("PromotionSysNo", query.PromotionSysNo); command.SetParameterValue("CompanyCode", ConstValues.CompanyCode); return(command.ExecuteEntityList <PromotionCodeEntity>()); }
public static int UpdateStatus(SettingCustomerEntity entity) { DataCommand command = DataCommandManager.GetDataCommand("Promotion_SetSettingCustomerStatus"); command.SetParameterValue("EditUser", ConstValues.EditUser); command.SetParameterValue("Status", entity.Status); command.SetParameterValue("SysNo", entity.SysNo); command.SetParameterValue("CompanyCode", ConstValues.CompanyCode); return(command.ExecuteNonQuery()); }
public static List <CustomerResultEntity> GetLimitCustomer(SettingCustomerEntity setting) { DataCommand command = DataCommandManager.GetDataCommand("Promotion_GetLimitCustomer"); command.SetParameterValue("@CompanyCode", ConstValues.CompanyCode); command.SetParameterValue("@PromotionSysNo", setting.PromotionSysNo); List <CustomerResultEntity> customerList = command.ExecuteEntityList <CustomerResultEntity>(); return(customerList); }