本文整理汇总了C#中Js.BLL.BaseDal.Delete方法的典型用法代码示例。如果您正苦于以下问题:C# BaseDal.Delete方法的具体用法?C# BaseDal.Delete怎么用?C# BaseDal.Delete使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Js.BLL.BaseDal
的用法示例。
在下文中一共展示了BaseDal.Delete方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: btnDeletet_Click
protected void btnDeletet_Click(object sender, EventArgs e)
{
Js.BLL.BaseDal dal = new Js.BLL.BaseDal(FormID, cnKey);
Js.BLL.Sys.SysComDal sdal = new Js.BLL.Sys.SysComDal(cnKey);
// Js.BLL.Sys.SysComDal sdal = new Js.BLL.Sys.SysComDal();
int iReturn = 0;
for (int i = 0; i < this.GridView1.Rows.Count; i++)
{
CheckBox cb = (CheckBox)(this.GridView1.Rows[i].FindControl("cbSelect"));
if (cb.Checked)
{
HyperLink hk = (HyperLink)(this.GridView1.Rows[i].FindControl("HyperLink1"));
iReturn = sdal.GetBillCanBeEdit(FormID, hk.Text);// "EnterpriseID='" + Session["EnterpriseID"].ToString() + "'");
if (iReturn == 1)
JScript.Instance.ShowMessage(this.updatePanel, hk.Text + Resources.Resource.NotDelete_Checked);
else if (iReturn == 2)
JScript.Instance.ShowMessage(this.updatePanel, hk.Text + Resources.Resource.NotDelete_IsUsed);
else
{
dal.Delete(hk.Text);//, "EnterpriseID='" + Session["EnterpriseID"].ToString() + "'");
dal.DeleteDetail(hk.Text);
}
}
}
SetBtnEnabled("");
}
示例2: btnDelete_Click
protected void btnDelete_Click(object sender, EventArgs e)
{
Js.BLL.BaseDal dal = new Js.BLL.BaseDal(FormID);
string strID = this.ddlRoleID.SelectedValue;
dal.Delete(strID);
btnNext_Click(sender, e);
if (this.ddlRoleID.SelectedValue == strID)
btnPre_Click(sender, e);
}
示例3: btnDelete_Click
protected void btnDelete_Click(object sender, EventArgs e)
{
Js.BLL.BaseDal dal = new Js.BLL.BaseDal(FormID);
string strID = this.txtEnterpriseID.Text;
dal.Delete(strID);
btnNext_Click(sender, e);
if (this.txtEnterpriseID.Text == strID)
btnPre_Click(sender, e);
}
示例4: btnDelete_Click
protected void btnDelete_Click(object sender, EventArgs e)
{
Js.BLL.BaseDal dal = new Js.BLL.BaseDal(FormID, cnKey);
//Js.BLL.BaseDal dal = new Js.BLL.BaseDal(FormID);
string strID = this.txtPersonID.Text;
// dal.Delete(strID);
dal.Delete(strID, "EnterpriseID='" + this.txtEnterpriseID.Text + "'");
btnNext_Click(sender, e);
if (this.txtPersonID.Text == strID)
btnPre_Click(sender, e);
}
示例5: btnDelete_Click
protected void btnDelete_Click(object sender, EventArgs e)
{
Js.BLL.BaseDal dal = new Js.BLL.BaseDal(FormID, cnKey);
//Js.BLL.BaseDal dal = new Js.BLL.BaseDal(FormID);
string strID = this.txtStyleID.Text;
dal.Delete(strID);
Js.BLL.Label.StyleDal sdal = new Js.BLL.Label.StyleDal(cnKey);
sdal.DeleteWarehousePagesByStyleID(strID);
btnNext_Click(sender, e);
if (this.txtStyleID.Text == strID)
btnPre_Click(sender, e);
}
示例6: btnDelete_Click
protected void btnDelete_Click(object sender, EventArgs e)
{
Js.BLL.BaseDal dal = new Js.BLL.BaseDal(FormID, cnKey);
//Js.BLL.BaseDal dal = new Js.BLL.BaseDal(FormID);
string strID = this.txtBillID.Text;
dal.Delete(strID);//, "EnterpriseID='" + this.txtEnterpriseID.Text + "'");
dal.DeleteDetail(strID);
btnNext_Click(sender, e);
if (this.txtBillID.Text == strID)
btnPre_Click(sender, e);
if (this.txtBillID.Text == strID)
Response.Redirect("Orders.aspx?FormID=" + Server.UrlEncode(FormID));
}
示例7: btnDeletet_Click
protected void btnDeletet_Click(object sender, EventArgs e)
{
Js.BLL.BaseDal dal = new Js.BLL.BaseDal(FormID, cnKey);
for (int i = 0; i < this.GridView1.Rows.Count; i++)
{
CheckBox cb = (CheckBox)(this.GridView1.Rows[i].FindControl("cbSelect"));
if (cb.Checked)
{
HyperLink hk = (HyperLink)(this.GridView1.Rows[i].FindControl("HyperLink1"));
dal.Delete(hk.Text);
}
}
SetBtnEnabled("");
}