コード例 #1
0
 public DataTable QueryVendorBaseByID(ArrayList ParameterList)
 {
     try
     {
         DBO.VDM_VendorBaseDBO dbo = new VDM_VendorBaseDBO(ref USEDB);
         return dbo.doQueryByID(ParameterList);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
コード例 #2
0
        public DataTable QuerySwitch(QueryType QT,
            ArrayList ParameterList
            )
        {
            DBO.VDM_VendorBaseDBO dbo = new VDM_VendorBaseDBO(ref USEDB);
            DataTable Dt;

            try
            {
                switch (QT)
                {
                    case QueryType.ALL:
                        Dt = dbo.doQueryAll();
                        break;
                    case QueryType.CODE:
                        Dt = dbo.doQueryByCode(ParameterList);
                        break;
                    case QueryType.ID:
                        Dt = dbo.doQueryByID(ParameterList);
                        break;
                    case QueryType.Custom:
                        Dt = dbo.doQueryByFind(ParameterList);
                        break;
                    default:
                        Dt = new DataTable();
                        break;
                }

                return Dt;
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }