本文整理汇总了C#中Js.BLL.BaseDal.Exists方法的典型用法代码示例。如果您正苦于以下问题:C# BaseDal.Exists方法的具体用法?C# BaseDal.Exists怎么用?C# BaseDal.Exists使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Js.BLL.BaseDal
的用法示例。
在下文中一共展示了BaseDal.Exists方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: IsFlagExists
public bool IsFlagExists(string FormID, string ID, byte Flag, string cnKey)
{
Js.BLL.BaseDal dal = new Js.BLL.BaseDal(FormID, cnKey);
return dal.Exists(ID,"Flag=" + Flag);
}
示例2: IsExists
public bool IsExists(string FormID, string ID,string cnKey)
{
ID = Server.UrlDecode(ID);
Js.BLL.BaseDal dal = new Js.BLL.BaseDal(FormID, cnKey);
return dal.Exists(ID);
}
示例3: IsExistsByFilter
public string IsExistsByFilter(string FormID, string EnterpriseID, string ID, string cnKey)
{
ID = Server.UrlDecode(ID);
EnterpriseID = Server.UrlDecode(EnterpriseID);
string filter = string.Format("EnterpriseID='{0}'", EnterpriseID);
Js.BLL.BaseDal dal = new Js.BLL.BaseDal(FormID, cnKey);
Js.BLL.Enterprise.CheckDal cdal = new Js.BLL.Enterprise.CheckDal(FormID, cnKey);
byte strTemp = 0;
if (ID.Length > 0)
{
if (dal.Exists(ID, filter))
strTemp = 1;
else
strTemp = 0;
}
if (FormID == "EP_Department" || FormID == "EP_Person")
{ }
else
{
if (strTemp == 0)
{
if (cdal.IsEnterpriseChecked(EnterpriseID))
strTemp = 2;
}
}
return strTemp.ToString();
}
示例4: Page_Load
protected void Page_Load(object sender, EventArgs e)
{
if (Session["cnKey"] != null)
cnKey = Session["cnKey"].ToString();
ID = Request.QueryString["ID"] + "";
FormID = Request.QueryString["FormID"] + "";
if (!IsPostBack)
{
ViewState["StrWhere"] = string.Format(" LogisticsID='{0}' and EnterpriseID='{1}'", ID, Session["EnterpriseID"].ToString());
Js.BLL.BaseDal dal = new Js.BLL.BaseDal(FormID, cnKey);
DataTable dt = dal.GetRecord(ViewState["StrWhere"].ToString());
ViewState["dt"] = dt;
Js.BLL.Sys.SysComDal sdal = new Js.BLL.Sys.SysComDal(cnKey);
BindDropDownList();
BindData(dt);
//if (sdal.GetBillCanBeEdit(FormID, ID, "EnterpriseID='" + Session["EnterpriseID"].ToString() + "'") > 0)
// this.btnEdit.Enabled = false;
if (FormID == "EP_ProductLogistics")
{
this.btnSourceView.Enabled = false;
this.btnDelete.Visible = false;
this.btnAdd.Visible = false;
}
else
{
string filter = string.Format("EnterpriseID='{0}'", Session["EnterpriseID"].ToString());
Js.BLL.BaseDal bdal = new Js.BLL.BaseDal("EP_ProductLogistics", Session["cnKey"].ToString());
if (bdal.Exists(this.txtLogisticsID.Text, filter))
this.btnSourceView.Enabled = true;
else
this.btnSourceView.Enabled = false;
this.ltlTitle.Text = Resources.Resource.EP_ProductLogisticsNoCheckTitle;
this.btnModify.Visible = false;
}
}
}