コード例 #1
0
 public List <ServiceAvailableDate> GetServiceDates(GetServiceDate getServiceDateObj, AspxCommonInfo aspxCommonObj)
 {
     try
     {
         ServiceItemProvider         objService  = new ServiceItemProvider();
         List <ServiceAvailableDate> lstServDate = objService.GetServiceDates(getServiceDateObj, aspxCommonObj);
         return(lstServDate);
     }
     catch (Exception e)
     {
         throw e;
     }
 }
コード例 #2
0
        public List <ServiceAvailableDate> GetServiceDates(GetServiceDate getServiceDateObj, AspxCommonInfo aspxCommonObj)
        {
            List <ServiceAvailableDate> serviceDates;

            try
            {
                serviceDates = (new ServiceItemProvider()).GetServiceDates(getServiceDateObj, aspxCommonObj);
            }
            catch (Exception exception)
            {
                throw exception;
            }
            return(serviceDates);
        }
コード例 #3
0
 public List <ServiceAvailableDate> GetServiceDates(GetServiceDate getServiceDateObj, AspxCommonInfo aspxCommonObj)
 {
     try
     {
         List <KeyValuePair <string, object> > parameter = CommonParmBuilder.GetParamSPC(aspxCommonObj);
         parameter.Add(new KeyValuePair <string, object>("@ServiceID", getServiceDateObj.ServiceID));
         parameter.Add(new KeyValuePair <string, object>("@BranchID", getServiceDateObj.BranchID));
         parameter.Add(new KeyValuePair <string, object>("@EmployeeID", getServiceDateObj.EmployeeID));
         SQLHandler sqlh = new SQLHandler();
         List <ServiceAvailableDate> lstServDate = sqlh.ExecuteAsList <ServiceAvailableDate>("[dbo].[usp_Aspx_GetServiceDates]", parameter);
         return(lstServDate);
     }
     catch (Exception e)
     {
         throw e;
     }
 }
コード例 #4
0
        public List <ServiceAvailableDate> GetServiceDates(GetServiceDate getServiceDateObj, AspxCommonInfo aspxCommonObj)
        {
            List <ServiceAvailableDate> serviceAvailableDates;

            try
            {
                List <KeyValuePair <string, object> > parameter = CommonParmBuilder.GetParamSPC(aspxCommonObj);
                parameter.Add(new KeyValuePair <string, object>("ServiceID", (object)getServiceDateObj.ServiceID));
                parameter.Add(new KeyValuePair <string, object>("BranchID", (object)getServiceDateObj.BranchID));
                parameter.Add(new KeyValuePair <string, object>("EmployeeID", (object)getServiceDateObj.EmployeeID));
                serviceAvailableDates = (new OracleHandler()).ExecuteAsList <ServiceAvailableDate>("usp_Aspx_GetServiceDates", parameter);
            }
            catch (Exception exception)
            {
                throw exception;
            }
            return(serviceAvailableDates);
        }
コード例 #5
0
 public List<ServiceAvailableDate> GetServiceDates(GetServiceDate getServiceDateObj, AspxCommonInfo aspxCommonObj)
 {
     try
     {
         ServiceItemController objService = new ServiceItemController();
         List<ServiceAvailableDate> lstServDate = objService.GetServiceDates(getServiceDateObj, aspxCommonObj);
         return lstServDate;
     }
     catch (Exception e)
     {
         throw e;
     }
 }
コード例 #6
0
 public List<ServiceAvailableDate> GetServiceDates(GetServiceDate getServiceDateObj, AspxCommonInfo aspxCommonObj)
 {
     try
     {
         List<KeyValuePair<string, object>> parameter = CommonParmBuilder.GetParamSPC(aspxCommonObj);
         parameter.Add(new KeyValuePair<string, object>("@ServiceID", getServiceDateObj.ServiceID));
         parameter.Add(new KeyValuePair<string, object>("@BranchID", getServiceDateObj.BranchID));
         parameter.Add(new KeyValuePair<string, object>("@EmployeeID", getServiceDateObj.EmployeeID));
         SQLHandler sqlh = new SQLHandler();
         List<ServiceAvailableDate> lstServDate = sqlh.ExecuteAsList<ServiceAvailableDate>("[dbo].[usp_Aspx_GetServiceDates]", parameter);
         return lstServDate;
     }
     catch (Exception e)
     {
         throw e;
     }
 }