當前位置: 首頁>>代碼示例>>C#>>正文


C# DB_OPT.SelectString方法代碼示例

本文整理匯總了C#中SoMeTech.DataAccess.DB_OPT.SelectString方法的典型用法代碼示例。如果您正苦於以下問題:C# DB_OPT.SelectString方法的具體用法?C# DB_OPT.SelectString怎麽用?C# DB_OPT.SelectString使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在SoMeTech.DataAccess.DB_OPT的用法示例。


在下文中一共展示了DB_OPT.SelectString方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。

示例1: Getmm

 private ZSZXFJModel Getmm(DataRow dr, DB_OPT dbo)
 {
     ZSZXFJModel model = new ZSZXFJModel {
         pk = dr["pk"].ToString(),
         Discription = dr["Discription"].ToString(),
         ExecuteValue1 = decimal.Parse(dr["ExecuteValue1"].ToString()),
         ExecuteValue2 = decimal.Parse(dr["ExecuteValue2"].ToString()),
         ExecuteValue3 = decimal.Parse(dr["ExecuteValue3"].ToString()),
         OperationPK = dr["OperationPK"].ToString()
     };
     if (model.OperationPK.Trim() != "")
     {
         string strSql = "select Name FROM GOV_TC_DB_OPRATETACHE where PK='" + model.OperationPK.Trim() + "'";
         model.OperationName = dbo.SelectString(strSql, null);
     }
     model.SFPK = dr["SFPK"].ToString();
     SFTypeModel model2 = new SFTypeDal {
         PK = dr["SFPK"].ToString().Trim()
     };
     model2 = model2.GetModel(dbo);
     model.Sfinfo = model2;
     model.ProjectType = dr["ProjectType"].ToString();
     UsualBookTableModel model3 = new UsualBookTableDal {
         PK = dr["ProjectType"].ToString().Trim()
     };
     model3 = model3.GetModel(false, dbo);
     model.ProjecttypeInfo = model3;
     model.TermName1 = dr["TermName1"].ToString();
     model.TermName2 = dr["TermName2"].ToString();
     model.flog = int.Parse(dr["flog"].ToString());
     return model;
 }
開發者ID:SoMeTech,項目名稱:SoMeRegulatory,代碼行數:32,代碼來源:ZSZXFJDal.cs

示例2: GetModel

 public ServicesMessModel GetModel(DataRow dr, DB_OPT dbo)
 {
     ServicesMessModel model = new ServicesMessModel {
         PK = dr["PK"].ToString().Trim(),
         BH = dr["BH"].ToString().Trim(),
         ServiceTypePK = dr["ServiceTypePK"].ToString().Trim(),
         ServiceRegisterPK = dr["ServiceRegisterPK"].ToString().Trim()
     };
     if (model.ServiceRegisterPK.Trim() != "")
     {
         model.ServiceRegisterInfo = new ServicesRegisterDal { PK = model.ServiceRegisterPK.Trim() }.GetModel(false, false, dbo);
     }
     model.OperationPK = dr["OperationPK"].ToString().Trim();
     if (model.OperationPK.Trim() != "")
     {
         model.OperationInfo = new BusinessMessDal { PK = model.OperationPK.Trim() }.GetModel(dbo);
     }
     model.InPK = dr["InPK"].ToString().Trim();
     model.InPKJZJZ = dr["InPKJZJZ"].ToString().Trim();
     if (model.InPKJZJZ.Trim() != "")
     {
         model.InInfoJZJZ = new ServicesMessDal { PK = model.InPKJZJZ.Trim() }.GetModel(dbo);
     }
     model.CompanyPK = dr["CompanyPK"].ToString().Trim();
     if (model.CompanyPK.Trim() != "")
     {
         model.CompanyInfo = new CompanyDal { pk_corp = model.CompanyPK.Trim() }.GetModel(false, false, false, dbo);
     }
     model.BranchPK = dr["BranchPK"].ToString().Trim();
     if (model.BranchPK.Trim() != "")
     {
         model.BranchInfo = new BranchDal { BH = model.BranchPK.Trim() }.GetModel_BH(dbo);
     }
     model.TaxFeeCallectionPK = dr["TaxFeeCallectionPK"].ToString().Trim();
     if (model.TaxFeeCallectionPK.Trim() != "")
     {
         string strSql = "select Name FROM GOV_TC_DB_SFProject where PK='" + model.TaxFeeCallectionPK.Trim() + "'";
         model.TaxFeeCallectionName = dbo.SelectString(strSql, null);
     }
     model.PowerCode = dr["PowerCode"].ToString();
     model.Name = dr["Name"].ToString();
     model.Discription = dr["Discription"].ToString();
     model.IsShow = dr["IsShow"].ToString();
     model.IsBLService = dr["IsBLService"].ToString();
     model.BLPKs = dr["BLPKs"].ToString();
     model.BLPassType = dr["BLPassType"].ToString();
     return model;
 }
開發者ID:SoMeTech,項目名稱:SoMeRegulatory,代碼行數:48,代碼來源:ServicesMessDal.cs

示例3: GetSqlPK

 public static string GetSqlPK(DB_OPT dbo)
 {
     string strSql = "select newid()";
     return dbo.SelectString(strSql, null);
 }
開發者ID:SoMeTech,項目名稱:SoMeRegulatory,代碼行數:5,代碼來源:DB_Sql.cs

示例4: GetOraclePK

 public static string GetOraclePK(DB_OPT dbo)
 {
     string strSql = "select sys_guid() from dual";
     return dbo.SelectString(strSql, null);
 }
開發者ID:SoMeTech,項目名稱:SoMeRegulatory,代碼行數:5,代碼來源:DB_Oracle.cs


注:本文中的SoMeTech.DataAccess.DB_OPT.SelectString方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。