private int GetAllianceEventType() { DataTable dtAllianceEventType = ShowdateDAL.GetAllianceEventType(this.Event_Type_ID); int allianceEventTypeID = -1; if (dtAllianceEventType.Rows.Count > 0) { int.TryParse(dtAllianceEventType.Rows[0]["Alliance_Event_Type_ID"].ToString(), out allianceEventTypeID); } return(allianceEventTypeID); }
public static DataSet ListByOrderNumber(List <string> orderNumbers) { string orderNumberList = string.Empty; //Format list to comma separated values string foreach (string orderNumber in orderNumbers) { orderNumberList += orderNumber + ","; } //Remove last comma in string if (!string.IsNullOrEmpty(orderNumberList)) { orderNumberList = orderNumberList.Substring(0, orderNumberList.Length - 1); } return(ShowdateDAL.ListByOrderNumber(orderNumberList)); }
public static DataSet ListByExpoVendorID(List <string> expoVendorIDs) { string expoVendorIDList = string.Empty; //Format list to comma separated values string foreach (string expoVendorID in expoVendorIDs) { expoVendorIDList += expoVendorID + ","; } //Remove last comma in string if (!string.IsNullOrEmpty(expoVendorIDList)) { expoVendorIDList = expoVendorIDList.Substring(0, expoVendorIDList.Length - 1); } return(ShowdateDAL.ListExpoVendorID(expoVendorIDList)); }
public ShowdateBAL(int orderNumber) { loadObject(ShowdateDAL.GetByOrderNumber(orderNumber)); }