本文整理汇总了C#中DataAccessLayer.clsParameterCollection类的典型用法代码示例。如果您正苦于以下问题:C# clsParameterCollection类的具体用法?C# clsParameterCollection怎么用?C# clsParameterCollection使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
clsParameterCollection类属于DataAccessLayer命名空间,在下文中一共展示了clsParameterCollection类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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;
}
}
示例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;
}
}
示例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;
}
}
示例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;
}
}
示例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;
}
}
示例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;
}
}
示例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;
}
}
示例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;
}
}
示例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;
}
}
示例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;
}
}
示例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;
}
}
示例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;
}
}
示例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;
}
}
示例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;
}
}
示例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;
}
}