本文整理汇总了C#中Js.BLL.BaseDal.GetRecord方法的典型用法代码示例。如果您正苦于以下问题:C# BaseDal.GetRecord方法的具体用法?C# BaseDal.GetRecord怎么用?C# BaseDal.GetRecord使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Js.BLL.BaseDal
的用法示例。
在下文中一共展示了BaseDal.GetRecord方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: btnPre_Click
protected void btnPre_Click(object sender, EventArgs e)
{
Js.BLL.BaseDal dal = new Js.BLL.BaseDal(FormID);
DataTable dt = dal.GetRecord("P", this.ddlRoleID.SelectedValue);
if (dt != null)
BindData(dt);
}
示例2: 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(" PersonID='{0}' and EnterpriseID='{1}'", ID, Session["EnterpriseID"].ToString());
BindDropDownList();
Js.BLL.BaseDal dal = new Js.BLL.BaseDal(FormID, cnKey);
if (ID != "")
{
DataTable dt = dal.GetRecord(ViewState["StrWhere"].ToString());
BindData(dt);
this.txtPersonID.ReadOnly = true;
}
else
{
this.txtPersonID.Text = dal.GetMaxID("EnterpriseID='" + Session["EnterpriseID"].ToString() + "'");
this.txtEnterpriseID.Text = Session["EnterpriseID"].ToString();
this.txtEnterpriseName.Text = Session["EnterpriseName"].ToString();
this.txtLastModifyUserName.Text = Session["User"].ToString();
this.txtLastModifyDate.Text = DateTime.Now.ToString("yyyy/MM/dd HH:mm");
this.txtCreateUserName.Text = Session["User"].ToString();
this.txtCreateDate.Text = DateTime.Now.ToString("yyyy/MM/dd HH:mm");
}
}
}
示例3: btnSave_Click
protected void btnSave_Click(object sender, EventArgs e)
{
Js.BLL.BaseDal dal = new Js.BLL.BaseDal(FormID, cnKey);
DataTable dt = dal.GetRecord(ViewState["StrWhere"].ToString());
DataRow dr = dt.NewRow();
dr["EnterpriseID"] = this.txtEnterpriseID.Text;
dr["EnterpriseName"] = this.txtEnterpriseName.Text;
dr["BillID"] = this.txtBillID.Text.Trim();
dr["QtyTotal"] = this.txtQtyTotal.Text.Trim();
dr["BillState"] = this.txtBillState.Text.Trim();
dr["CreateUserName"] = this.txtCreateUserName.Text;
dr["CreateDate"] = this.txtCreateDate.Text;
dr["LastModifyUserName"] = Session["User"].ToString();
dr["LastModifyDate"] = DateTime.Now.ToString(Js.Com.User.strDateFormat);
dr["EP_CheckUserName"] = this.txtEP_CheckUserName.Text;
if (this.txtEP_CheckDate.Text.Length > 0)
dr["EP_CheckDate"] = this.txtEP_CheckDate.Text;
dr["BU_CheckUserName"] = this.txtBU_CheckUserName.Text;
if (this.txtBU_CheckDate.Text.Length > 0)
dr["BU_CheckDate"] = this.txtBU_CheckDate.Text;
if (ID.Length > 0)
dal.Update(dr, ID);
else
dal.Add(dr);
Response.Redirect("InvalidLabelView.aspx?FormID=" + Server.UrlEncode(FormID) + "&ID=" + Server.UrlEncode(this.txtBillID.Text));
}
示例4: Page_Load
protected void Page_Load(object sender, EventArgs e)
{
BillID = Request.QueryString["BillID"] + "";
FormID = Request.QueryString["FormID"] + "";
if (!IsPostBack)
{
ViewState["StrWhere"] = string.Format(" BillID='{0}'", BillID);
Js.BLL.BaseDal dal = new Js.BLL.BaseDal(FormID, cnKey);
if (BillID != "")
{
DataTable dt = dal.GetRecord(ViewState["StrWhere"].ToString());
BindData(dt);
this.txtBillID.ReadOnly = true;
}
else
{
this.txtBillID.Text = dal.GetMaxID();
this.txtLastModifyUserName.Text = Session["User"].ToString();
this.txtLastModifyDate.Text = DateTime.Now.ToString(Js.Com.User.strDateFormat);
this.txtCreateUserName.Text = Session["User"].ToString();
this.txtCreateDate.Text = DateTime.Now.ToString(Js.Com.User.strDateFormat);
}
}
}
示例5: btnSave_Click
protected void btnSave_Click(object sender, EventArgs e)
{
Js.BLL.BaseDal dal = new Js.BLL.BaseDal(FormID, cnKey);
DataTable dt = dal.GetRecord(ViewState["StrWhere"].ToString());
DataRow dr = dt.NewRow();
dr["StateID"] = this.txtStateListID.Text;
dr["StateName"] = this.txtStateName.Text;
dr["Style"] = this.ddlStyle.SelectedIndex;
dr["Description"] = this.txtMemo.Text;
dr["ImageProvider"] = this.chkImageProvider.Checked;
if (this.txtStopDate.Text.Length > 0)
dr["StopDate"] = this.txtStopDate.Text;
dr["StopUserName"] = this.txtStopUserName.Text;
if (this.txtCreateDate.Text.Length > 0)
dr["CreateDate"] = this.txtCreateDate.Text;
dr["CreateUserName"] = this.txtCreateUserName.Text;
dr["LastModifyDate"] = DateTime.Now;// this.txtLastModifyDate.Text;//異動日期
dr["LastModifyUserName"] = Session["User"].ToString();// this.txtLastModifyUserName.Text;//異動人員
if (this.txtCheckDate.Text.Length > 0)
dr["CheckDate"] = this.txtCheckDate.Text;
dr["CheckUserName"] = this.txtCheckUserName.Text;
if (ID.Length > 0)
dal.Update(dr, ID);
else
dal.Add(dr);
Response.Redirect("StateListView.aspx?FormID=" + Server.UrlEncode(FormID) + "&ID=" + Server.UrlEncode(this.txtStateListID.Text));
}
示例6: GetSparesFormat
/// <summary>
/// 取得比率位數
/// </summary>
/// <returns></returns>
public string GetSparesFormat()
{
Js.BLL.BaseDal dal = new Js.BLL.BaseDal("BU_Parameter");
DataTable dt = dal.GetRecord("1=1");
return (dt != null && dt.Rows.Count > 0 ? "N" + dt.Rows[0]["PercentDecimalDigits"].ToString().Trim() : "N0");
//string.Format ("{0:N2}",111)
}
示例7: btnSave_Click
protected void btnSave_Click(object sender, EventArgs e)
{
Js.BLL.BaseDal dal = new Js.BLL.BaseDal(FormID, cnKey);
DataTable dt = dal.GetRecord(ViewState["StrWhere"].ToString());
DataRow dr = dt.NewRow();
dr["ProductionUnitID"] = this.txtProductionUnitID.Text;
dr["ProductionUnitName"] = this.txtProductionUnitName.Text;
dr["Memo"] = this.txtMemo.Text.Trim();
dr["CreateUserName"] = this.txtCreateUserName.Text;
dr["CreateDate"] = this.txtCreateDate.Text;
dr["LastModifyUserName"] = Session["User"].ToString();
dr["LastModifyDate"] = DateTime.Now.ToString(Js.Com.User.strDateFormat);
dr["CheckUserName"] = this.txtCheckUserName.Text;
if (this.txtCheckDate.Text.Length > 0)
dr["CheckDate"] = this.txtCheckDate.Text;
dr["StopUserName"] = this.txtStopUserName.Text;
if (this.txtStopDate.Text.Length > 0)
dr["StopDate"] = this.txtStopDate.Text;
if (ID.Length > 0)
dal.Update(dr, ID);
else
dal.Add(dr);
//Response.Redirect("Departments.aspx?FormID=" + Server.UrlEncode(FormID));
Response.Redirect("ProductionUnitView.aspx?FormID=" + Server.UrlEncode(FormID) + "&ID=" + Server.UrlEncode(this.txtProductionUnitID.Text));
}
示例8: btnNext_Click
protected void btnNext_Click(object sender, EventArgs e)
{
Js.BLL.BaseDal dal = new Js.BLL.BaseDal(FormID, cnKey);
DataTable dt = dal.GetRecord("N", this.txtStyleID.Text);
if (dt != null)
BindData(dt);
}
示例9: btnSave_Click
protected void btnSave_Click(object sender, EventArgs e)
{
Js.BLL.BaseDal dal = new Js.BLL.BaseDal(FormID, cnKey);
DataTable dt = dal.GetRecord(ViewState["StrWhere"].ToString());
DataRow dr = dt.NewRow();
dr["MemberID"] = this.txtMemberID.Text;
dr["Country"] = this.EddlCountry.Text;
dr["Password"] = this.txtPassword.Text.Trim();
dr["PasswordHint"] = this.txtPasswordHint.Text.Trim();
dr["Name"] = this.txtName.Text.Trim();
if (this.ddlSex.SelectedIndex > 0)
dr["Sex"] = 1;
else
dr["Sex"] = 0;
dr["EMail"] = this.txtEMail.Text;
dr["SpareEMail"] = this.txtSpareEMail.Text;
if(this.txtBirthday.Text.Trim().Length>0)
dr["Birthday"] = this.txtBirthday.Text;
dr["CellPhone"] = this.txtCellPhone.Text;
dr["LinkPhone"] = this.txtLinkPhone.Text;
dr["ZipCode1"] = this.txtZipCode1.Text;
dr["Address1"] = this.txtAddress1.Text;
dr["ZipCode2"] = this.txtZipCode2.Text;
dr["Address2"] = this.txtAddress2.Text;
dr["WebSite"] = this.txtWebSite.Text;
if (ID.Length > 0)
dal.Update(dr, ID);
else
dal.Add(dr);
Response.Redirect("MemberView.aspx?FormID=" + Server.UrlEncode(FormID) + "&ID=" + Server.UrlEncode(this.txtMemberID.Text));
}
示例10: Page_Load
protected void Page_Load(object sender, EventArgs e)
{
ID = Request.QueryString["ID"] + "";
FormID = Request.QueryString["FormID"] + "";
if (!IsPostBack)
{
ViewState["StrWhere"] = string.Format(" AnnounceID='{0}'", ID);
Js.BLL.BaseDal dal = new Js.BLL.BaseDal(FormID);
DataTable dt = dal.GetRecord(ViewState["StrWhere"].ToString());
ViewState["dt"] = dt;
BindData(dt);
Js.BLL.System.MessageDal mdal = new Js.BLL.System.MessageDal();
int UserFlag;
if (this.txtAnnouncerUserName.Text == Session["User"].ToString())
{
UserFlag = int.Parse(this.txtReceiverFlag0.Text);
mdal.UpdateMessageRead1(ID, UserFlag, this.txtReceiverUserName.Text);
}
else
{
UserFlag = Session["UserType"].ToString() == "BU" ? 0 : 1;
mdal.UpdateMessageRead(ID, UserFlag, Session["User"].ToString());
}
}
}
示例11: btnPre_Click
protected void btnPre_Click(object sender, EventArgs e)
{
Js.BLL.BaseDal dal = new Js.BLL.BaseDal(FormID, cnKey);
DataTable dt = dal.GetRecord("P", this.txtProductionUnitID.Text);
if (dt != null)
BindData(dt);
}
示例12: btnSave_Click
protected void btnSave_Click(object sender, EventArgs e)
{
Js.BLL.BaseDal dal = new Js.BLL.BaseDal(FormID, cnKey);
DataTable dt = dal.GetRecord(ViewState["StrWhere"].ToString());
DataRow dr = dt.NewRow();
dr["WarehouseID"] = this.txtWarehouseID.Text.Trim().ToUpper();
dr["WarehouseName"] = this.txtWarehouseName.Text;
dr["Contact"] = this.txtContact.Text.Trim();
dr["ContactPhone"] = this.txtContactPhone.Text.Trim();
dr["Address"] = this.txtAddress.Text.Trim();
dr["Memo"] = this.txtMemo.Text.Trim();
dr["CreateUserName"] = this.txtCreateUserName.Text;
dr["CreateDate"] = this.txtCreateDate.Text;
dr["LastModifyUserName"] = Session["User"].ToString();
dr["LastModifyDate"] = DateTime.Now.ToString(Js.Com.User.strDateFormat);
dr["CheckUserName"] = this.txtCheckUserName.Text;
if (this.txtCheckDate.Text.Length > 0)
dr["CheckDate"] = this.txtCheckDate.Text;
dr["StopUserName"] = this.txtStopUserName.Text;
if (this.txtStopDate.Text.Length > 0)
dr["StopDate"] = this.txtStopDate.Text;
if (ID.Length > 0)
dal.Update(dr, ID);
else
{
dal.Add(dr);
//插入標籤數量
Js.BLL.Label.StyleDal sdal = new Js.BLL.Label.StyleDal(cnKey);
sdal.InsertWarehousePagesByWID(this.txtWarehouseID.Text.Trim().ToUpper(), Session["User"].ToString());
}
//Response.Redirect("Departments.aspx?FormID=" + Server.UrlEncode(FormID));
Response.Redirect("WarehouseView.aspx?FormID=" + Server.UrlEncode(FormID) + "&ID=" + Server.UrlEncode(this.txtWarehouseID.Text));
}
示例13: btnSave_Click
protected void btnSave_Click(object sender, EventArgs e)
{
Js.BLL.BaseDal dal = new Js.BLL.BaseDal(FormID, cnKey);
DataTable dt = dal.GetRecord(ViewState["StrWhere"].ToString());
DataRow dr = dt.NewRow();
dr["Flag"] = Flag;//旗標
dr["BillID"] = this.txtBillID.Text;//上架單號
if (this.txtEnableDate.Text.Length > 0) dr["EnableDate"] = this.txtEnableDate.DateValue;//日期
dr["EnterpriseID"] = this.txtEnterpriseID.Text;//企業用戶編號
dr["EnterpriseName"] = this.txtEnterpriseName.Text;//企業用戶名稱
dr["BillState"] = this.ddlBillState.SelectedIndex;//狀態 0未上架、1異常待修正、2檢查OK、3上架中、4已上架
dr["QtyTotal"] = int.Parse(this.txtQtyTotal.Text);//數量合計
if (this.txtCreateDate.Text.Length > 0) dr["CreateDate"] = this.txtCreateDate.Text;//建檔日期
dr["CreateUserName"] = this.txtCreateUserName.Text;//建檔人員
if (this.txtLastModifyDate.Text.Length > 0) dr["LastModifyDate"] = this.txtLastModifyDate.Text;//異動日期
dr["LastModifyUserName"] = this.txtLastModifyUserName.Text;//異動人員
if (this.txtEP_CheckDate.Text.Length > 0) dr["EP_CheckDate"] = this.txtEP_CheckDate.Text;//建檔日期
dr["EP_CheckUserName"] = this.txtEP_CheckUserName.Text;//營運覆核
if (this.txtBU_CheckDate.Text.Length > 0) dr["BU_CheckDate"] = this.txtBU_CheckDate.Text;//營運覆核日期
dr["BU_CheckUserName"] = this.txtBU_CheckUserName.Text;//營運覆核用戶
if (ID.Length > 0)
dal.Update(dr, ID);
else
dal.Add(dr);
Response.Redirect("EnableLabelNoView.aspx?FormID=" + Server.UrlEncode(FormID) + "&ID=" + Server.UrlEncode(this.txtBillID.Text));
}
示例14: Page_Load
protected void Page_Load(object sender, EventArgs e)
{
ID = Request.QueryString["ID"] + "";
string Flag = Request.QueryString["Flag"] + ""; //shj
switch(Flag)
{
case "1":
this.ltlBillID.Text = Resources.Resource.LB_Order_BillID;
break;
case "2":
this.ltlBillID.Text = Resources.Resource.LB_Schedule_BillID;
break;
case "3":
this.ltlBillID.Text = Resources.Resource.LB_Production_BillID;
break;
}
txtBillID.Text = Request.QueryString["BillID"] + "";
Js.BLL.BaseDal dal = new Js.BLL.BaseDal(FormID, cnKey);
DataTable dt = dal.GetRecord(string.Format(" StyleID='{0}'", ID));
//this.txtEnterpriseID.Text = dt.Rows[0]["EnterPriseID"].ToString();
//this.txtEnterpriseName.Text = dt.Rows[0]["EnterpriseName"].ToString();
this.txtStyleID.Text = dt.Rows[0]["StyleID"].ToString();
this.txtLabelMode.Text = dt.Rows[0]["StyleName"].ToString();
Image1.ImageUrl = dt.Rows[0]["ImageLocation"].ToString();
//HdnSubDetail1.Value = Js.Com.JsonHelper.Dtb2Json(new Js.DAO.Label.StyleDao(FormID, cnKey).GetLimitedProduct(ID));
}
示例15: btnPre_Click
protected void btnPre_Click(object sender, EventArgs e)
{
Js.BLL.BaseDal dal = new Js.BLL.BaseDal(FormID);
DataTable dt = dal.GetRecord("P", this.txtEnterpriseID.Text);
if (dt != null)
BindData(dt);
}