本文整理汇总了C#中DataAccessLayer.clsParameterCollection类的典型用法代码示例。如果您正苦于以下问题:C# clsParameterCollection类的具体用法?C# clsParameterCollection怎么用?C# clsParameterCollection使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
clsParameterCollection类属于DataAccessLayer命名空间,在下文中一共展示了clsParameterCollection类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。
示例1: SaveVoucherBooklet
/// <summary>
/// This method is used to save voucher (Booklet)
/// </summary>
/// <param name="voucherInfo"></param>
/// <param name="userId"></param>
public static void SaveVoucherBooklet(VoucherInfo voucherInfo, string userId)
{
try
{
clsParameterCollection ParameterCollection = new clsParameterCollection();
ParameterCollection.ProcedureName = "BS_Voucher_CreateBooklet";
ParameterCollection.Add(new clsParameter("@vouchertypeID", voucherInfo.vouchertypeId));
ParameterCollection.Add(new clsParameter("@denomination", voucherInfo.voucherDenomination));
ParameterCollection.Add(new clsParameter("@quantity", voucherInfo.quantity));
ParameterCollection.Add(new clsParameter("@amountvalue", voucherInfo.priceAmount));
ParameterCollection.Add(new clsParameter("@leaf", voucherInfo.leafQuantity));
ParameterCollection.Add(new clsParameter("@userid", userId));
ParameterCollection.Add(new clsParameter("@voucherValidateDate", voucherInfo.VoucherValidity));
ParameterCollection.Add(new clsParameter("@isThirdparty", voucherInfo.isThirdparty));
ParameterCollection.Add(new clsParameter("@salesValidateDate", voucherInfo.SalesValidity));
ParameterCollection.Add(new clsParameter("@showDenomination", voucherInfo.showDenomination));
ParameterCollection.Add(new clsParameter("@redeemStore", voucherInfo.RedeemStores));
DataAccess.ExecuteNonQuerySp(ParameterCollection);
}
catch (Exception Ex)
{
if (!Ex.Message.Contains("User Define:"))
BL_Exception.WriteLog(Ex);
throw Ex;
}
}
开发者ID:har9421,项目名称:BestSeller,代码行数:33,代码来源:BL_CreateVoucher.cs
示例2: CheckPkgCountBeforeInsert
public int CheckPkgCountBeforeInsert(int PackageID, int UserID)
{
try
{
clsParameterCollection clsParaCollection = new clsParameterCollection();
clsParaCollection.ProcedureName = Constants.VP_UserPackage_CheckPkgCountBeforeInsert;
clsParaCollection.Add(new clsParameter { ParameterName = "@UserID", ParameterValue = UserID });
clsParaCollection.Add(new clsParameter { ParameterName = "@PackageID", ParameterValue = PackageID });
dt = DataAccess.ExecuteSpAndGetDataTable(clsParaCollection);
if (dt.Rows.Count > 0)
{
return Convert.ToInt32(dt.Rows[0][0]);
}
else
{
return 0;
}
}
catch (Exception ex)
{
BL_Exception.WriteLog(ex);
throw ex;
}
}
开发者ID:har9421,项目名称:Vishwapress,代码行数:26,代码来源:BL_Account.cs
示例3: SaleVoucherSeries
public static void SaleVoucherSeries(string FirstID, string LastId, string RequestorName, string RequestorEmail, string RequestorPhone, string Amount, string UserId)
{
try
{
clsParameterCollection ParameterCollection = new clsParameterCollection();
ParameterCollection.ProcedureName = "BS_SalesNew_SaleSeries";
ParameterCollection.Add(new clsParameter("@VocStart", FirstID));
ParameterCollection.Add(new clsParameter("@VocEnd", LastId));
ParameterCollection.Add(new clsParameter("@UserID", UserId));
ParameterCollection.Add(new clsParameter("@name", RequestorName));
ParameterCollection.Add(new clsParameter("@EmailId", RequestorEmail));
ParameterCollection.Add(new clsParameter("@phoneNumber", RequestorPhone));
ParameterCollection.Add(new clsParameter("@TotalSalesAmout", Amount));
DataAccess.ExecuteNonQuerySp(ParameterCollection);
}
catch (Exception Ex)
{
if (!Ex.Message.Contains("User Define:"))
BL_Exception.WriteLog(Ex);
throw Ex;
}
}
开发者ID:har9421,项目名称:BestSeller,代码行数:25,代码来源:BL_SalesNew.cs
示例4: GetProofReadingUserData
public DataTable GetProofReadingUserData(string UserID)
{
try
{
clsParameterCollection clsParaCollection = new clsParameterCollection();
clsParaCollection.ProcedureName = Constants.sp_RetrieveProofReadingUserData;
clsParaCollection.Add(new clsParameter("@UserID", UserID));
return DataAccess.ExecuteSpAndGetDataTable(clsParaCollection);
}
catch (Exception Ex)
{
throw Ex;
}
}
开发者ID:har9421,项目名称:Vishwapress,代码行数:14,代码来源:BL_ProofReading.cs
示例5: getAllUsers
public DataTable getAllUsers()
{
try {
clsParameterCollection clsParaCollection = new clsParameterCollection();
clsParaCollection.ProcedureName = Constants.sp_GetAllUsers;
dt = DataAccess.ExecuteSpAndGetDataTable(clsParaCollection);
return dt;
}
catch (Exception ex)
{
throw ex;
}
}
开发者ID:har9421,项目名称:Vishwapress,代码行数:14,代码来源:BL_Account.cs
示例6: CheckUserActiveORNOT
public DataTable CheckUserActiveORNOT(string UserName)
{
try
{
clsParameterCollection clsParaCollection = new clsParameterCollection();
clsParaCollection.ProcedureName = Constants.sp_IsActive;
clsParaCollection.Add(new clsParameter { ParameterName = "@UserName", ParameterValue = UserName });
dt = DataAccess.ExecuteSpAndGetDataTable(clsParaCollection);
return dt;
}
catch (Exception ex)
{
throw ex;
}
}
开发者ID:har9421,项目名称:Vishwapress,代码行数:15,代码来源:BL_Account.cs
示例7: get_IRTemplateData
public DataTable get_IRTemplateData()
{
try
{
clsParameterCollection clsParaCollection = new clsParameterCollection();
clsParaCollection.ProcedureName = Constants.sp_RetrieveIllustrationTemplates;
dt = DataAccess.ExecuteSpAndGetDataTable(clsParaCollection);
return dt;
}
catch (Exception ex)
{
throw ex;
}
}
开发者ID:har9421,项目名称:Vishwapress,代码行数:15,代码来源:BL_Template.cs
示例8: BookAuthorInsert
public void BookAuthorInsert(DataTable dt)
{
try
{
clsParameterCollection clsParaCollection = new clsParameterCollection();
clsParaCollection.ProcedureName = Constants.VP_athor_book_Insert;
clsParaCollection.Add(new clsParameter("@author_book", dt));
DataAccess.ExecuteNonQuerySp(clsParaCollection);
}
catch (Exception ex)
{
BL_Exception.WriteLog(ex);
throw ex;
}
}
开发者ID:har9421,项目名称:Vishwapress,代码行数:15,代码来源:BL_ProductNew.cs
示例9: GetUserId
public static int GetUserId(string Email)
{
try
{
clsParameterCollection clsParaCollection = new clsParameterCollection();
clsParaCollection.ProcedureName = Constants.GetUserID;
clsParaCollection.Add(new clsParameter("@Email", Email));
return Convert.ToInt32(Convert.ToString(DataAccess.ExecuteSpAndGetDataTable(clsParaCollection).Rows[0]["userid"]));
}
catch (Exception ex)
{
BL_Exception.WriteLog(ex);
throw ex;
}
}
开发者ID:har9421,项目名称:Vishwapress,代码行数:15,代码来源:Common.cs
示例10: get_Templates
public DataTable get_Templates()
{
try
{
clsParameterCollection clsParaCollection = new clsParameterCollection();
clsParaCollection.ProcedureName = Constants.sp_getIRTemplateURL;
dt.Reset();
dt = DataAccess.ExecuteSpAndGetDataTable(clsParaCollection);
return dt;
}
catch (Exception ex)
{
throw ex;
}
}
开发者ID:har9421,项目名称:Vishwapress,代码行数:15,代码来源:BL_Illustration.cs
示例11: GetStateNameByStateId
public static string GetStateNameByStateId(int CityId)
{
try
{
clsParameterCollection ParameterCollection = new clsParameterCollection();
ParameterCollection.ProcedureName = "BS_GetStateByStateId";
ParameterCollection.Add(new clsParameter("@StateID", CityId));
return DataAccess.ExecuteScalarSp(ParameterCollection).ToString();
}
catch (Exception Ex)
{
throw Ex;
}
}
开发者ID:har9421,项目名称:BestSeller,代码行数:15,代码来源:BL_StateCity.cs
示例12: Cancellation
///// <summary>
///// This is Used to calculate Estimated Amount based on input(Number of words)
///// </summary>
///// <param name="wCount"></param>
///// <returns></returns>
//public string CalculateEstimateAmt(int wCount)
//{
// try
// {
// clsParameterCollection clsParaCollection = new clsParameterCollection();
// clsParaCollection.ProcedureName = Constants.sp_CalculateEstimateAmt;
// clsParaCollection.Add(new clsParameter("@Wcont", wCount));
// dt.Reset();
// dt = DataAccess.ExecuteSpAndGetDataTable(clsParaCollection);
// return dt.Rows[0][0].ToString();
// }
// catch (Exception ex)
// {
// BL_Exception.WriteLog(ex);
// throw ex;
// }
//}
/// <summary>
/// This Method is used to Cancel service request (set status=Canceled on respective trnid)
/// </summary>
/// <param name="trnID"></param>
public void Cancellation(int trnID)
{
try
{
clsParameterCollection clsParaCollection = new clsParameterCollection();
clsParaCollection.Add(new clsParameter("@TrnID", trnID));
clsParaCollection.ProcedureName = Constants.sp_CoverDesign_CancelRequest;
DataAccess.ExecuteNonQuerySp(clsParaCollection);
}
catch (Exception ex)
{
BL_Exception.WriteLog(ex);
throw ex;
}
}
开发者ID:har9421,项目名称:Vishwapress,代码行数:41,代码来源:BL_CoverDesign.cs
示例13: GetVoucherOperationDetails
/// <summary>
/// This method is used to get Redeemped vouchers.
/// </summary>
/// <returns></returns>
public static DataTable GetVoucherOperationDetails(string ProcedureName)
{
try
{
clsParameterCollection ParameterCollection = new clsParameterCollection();
ParameterCollection.ProcedureName = ProcedureName;
return DataAccess.ExecuteSpAndGetDataTable(ParameterCollection);
}
catch (Exception Ex)
{
if (!Ex.Message.Contains("User Define:"))
BL_Exception.WriteLog(Ex);
throw Ex;
}
}
开发者ID:har9421,项目名称:BestSeller,代码行数:20,代码来源:BL_Common.cs
示例14: GetStoreDetails
public static DataTable GetStoreDetails()
{
try
{
clsParameterCollection ParameterCollection = new clsParameterCollection();
ParameterCollection.ProcedureName = "BS_EmployeeAllocation_FillStoreList";
return DataAccess.ExecuteSpAndGetDataTable(ParameterCollection);
}
catch (Exception Ex)
{
if (!Ex.Message.Contains("User Define:"))
BL_Exception.WriteLog(Ex);
throw Ex;
}
}
开发者ID:har9421,项目名称:BestSeller,代码行数:16,代码来源:BL_AllocateToEmployee.cs
示例15: GetVendorList
public static DataTable GetVendorList()
{
try
{
clsParameterCollection ParameterCollection = new clsParameterCollection();
ParameterCollection.ProcedureName = "BS_SalesNew2_GetVendorList";
return DataAccess.ExecuteSpAndGetDataTable(ParameterCollection);
}
catch (Exception Ex)
{
if (!Ex.Message.Contains("User Define:"))
BL_Exception.WriteLog(Ex);
throw Ex;
}
}
开发者ID:har9421,项目名称:BestSeller,代码行数:16,代码来源:BL_SalesNew2.cs
示例16: GetCancelledDetails
/// <summary>
/// This method is used to get canceled vouchers
/// </summary>
/// <returns></returns>
public static DataTable GetCancelledDetails()
{
try
{
clsParameterCollection ParameterCollection = new clsParameterCollection();
ParameterCollection.ProcedureName = "BS_Cancellation_ShowVocuhers";
return DataAccess.ExecuteSpAndGetDataTable(ParameterCollection);
}
catch (Exception Ex)
{
if (!Ex.Message.Contains("User Define:"))
BL_Exception.WriteLog(Ex);
throw Ex;
}
}
开发者ID:har9421,项目名称:BestSeller,代码行数:20,代码来源:BL_Cancellation.cs
示例17: get_FRTemplateData
/// <summary>
/// This method retrieves all available formatting templates from VP_Templates table.
/// </summary>
/// <returns></returns>
public DataTable get_FRTemplateData()
{
try
{
clsParameterCollection clsParaCollection = new clsParameterCollection();
clsParaCollection.ProcedureName = Constants.sp_RetrieveFormattingTemplates;
dt.Reset();
dt = DataAccess.ExecuteSpAndGetDataTable(clsParaCollection);
return dt;
}
catch (Exception ex)
{
BL_Exception.WriteLog(ex);
throw ex;
}
}
开发者ID:har9421,项目名称:Vishwapress,代码行数:20,代码来源:BL_Template.cs
示例18: GetSubMenu
/// <summary>
/// This method is used to get child menu details.
/// </summary>
/// <returns></returns>
public static DataTable GetSubMenu(int MenuId)
{
try
{
clsParameterCollection ParameterCollection = new clsParameterCollection();
ParameterCollection.ProcedureName = "BS_GetSubMenu";
ParameterCollection.Add(new clsParameter("@MenuId", MenuId));
return DataAccess.ExecuteSpAndGetDataTable(ParameterCollection);
}
catch (Exception Ex)
{
if (!Ex.Message.Contains("User Define:"))
BL_Exception.WriteLog(Ex);
throw Ex;
}
}
开发者ID:har9421,项目名称:BestSeller,代码行数:21,代码来源:BL_Menu.cs
示例19: GetUserName
public string GetUserName(ProofReading pr)
{
try
{
clsParameterCollection clsParaCollection = new clsParameterCollection();
clsParaCollection.ProcedureName = Constants.sp_GetUserName;
clsParaCollection.Add(new clsParameter("@TrnId", pr.PTran_ID));
dt.Reset();
dt = DataAccess.ExecuteSpAndGetDataTable(clsParaCollection);
return dt.Rows[0][0].ToString();
}
catch (Exception ex)
{
throw ex;
}
}
开发者ID:har9421,项目名称:Vishwapress,代码行数:17,代码来源:BL_ProofReading.cs
示例20: CancelRedemption
public static void CancelRedemption(string UserID)
{
try
{
clsParameterCollection ParameterCollection = new clsParameterCollection();
ParameterCollection.ProcedureName = "BS_RedemptionChange3Cancel";
ParameterCollection.Add(new clsParameter("@UserID", UserID));
DataAccess.ExecuteNonQuerySp(ParameterCollection);
}
catch (Exception Ex)
{
if (!Ex.Message.Contains("User Define:"))
BL_Exception.WriteLog(Ex);
throw Ex;
}
}
开发者ID:har9421,项目名称:BestSeller,代码行数:17,代码来源:BL_RedemptionChange3.cs
注:本文中的DataAccessLayer.clsParameterCollection类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论