Beispiel #1
0
 private DataTable GetVendor(string sVenCode)
 {
     try
     {
         FrameBaseFunction.ClsDataBase clsSQLCommond = FrameBaseFunction.ClsDataBaseFactory.Instance();
         string    sSQL = "select cVenCode as iID,cVenName as iText from @u8.Vendor where cVenCode = '" + sVenCode + "' order by cVenCode";
         DataTable dt   = clsGetSQL.GetLookUpEdit(sSQL);
         return(dt);
     }
     catch
     {
         throw new Exception("获得供应商信息失败!");
     }
 }
Beispiel #2
0
 public static ClsDataBase Instance()
 {
     if (clsCommond == null)
     {
         lock (lockHelper)
         {
             if (clsCommond == null)
             {
                 if (FrameBaseFunction.ClsBaseDataInfo.sDataBaseType.ToLower().Trim() == "sqlserver")
                 {
                     clsCommond = new FrameBaseFunction.ClsSQLServerCommond();
                 }
                 if (FrameBaseFunction.ClsBaseDataInfo.sDataBaseType.ToLower().Trim() == "webservice")
                 {
                     clsCommond = new FrameBaseFunction.ClsWebServerice();
                 }
             }
         }
     }
     return(clsCommond);
 }