예제 #1
0
 public virtual CloudAccountDA.FooterContentDataTable GetData()
 {
     this.Adapter.SelectCommand = this.CommandCollection[0];
     CloudAccountDA.FooterContentDataTable dataTable = new CloudAccountDA.FooterContentDataTable();
     this.Adapter.Fill(dataTable);
     return(dataTable);
 }
예제 #2
0
 public virtual int Fill(CloudAccountDA.FooterContentDataTable dataTable)
 {
     this.Adapter.SelectCommand = this.CommandCollection[0];
     if (this.ClearBeforeFill)
     {
         dataTable.Clear();
     }
     return(this.Adapter.Fill(dataTable));
 }
 private void SetRecord(string iD)
 {
     this.objFooterContentDT = this.objFooterContentBll.GetDataByFooterID(int.Parse(iD));
     if (this.objFooterContentDT.Rows.Count <= 0)
     {
         return;
     }
     this.hfFooter.Value        = this.objFooterContentDT.Rows[0]["FooterContentID"].ToString();
     this.txtFooterContent.Text = this.objFooterContentDT.Rows[0]["FooterContent"].ToString();
 }
 private void GotoPage()
 {
     this.objFooterContentDT = this.objFooterContentBll.GetAllDetail();
     if (this.objFooterContentDT.Rows.Count > 0)
     {
         this.hfFooter.Value = this.objFooterContentDT.Rows[0]["FooterContentID"].ToString();
         this.Response.Redirect("~/BillTransact/FooterContent.aspx?cmd=add&ID=" + this.hfFooter.Value);
     }
     else
     {
         this.Response.Redirect("~/BillTransact/FooterContent.aspx?cmd=add");
     }
 }
예제 #5
0
 public virtual CloudAccountDA.FooterContentDataTable GetDataByFooterID(int?FooterContentID)
 {
     this.Adapter.SelectCommand = this.CommandCollection[1];
     if (FooterContentID.HasValue)
     {
         this.Adapter.SelectCommand.Parameters[1].Value = FooterContentID.Value;
     }
     else
     {
         this.Adapter.SelectCommand.Parameters[1].Value = DBNull.Value;
     }
     CloudAccountDA.FooterContentDataTable dataTable = new CloudAccountDA.FooterContentDataTable();
     this.Adapter.Fill(dataTable);
     return(dataTable);
 }
예제 #6
0
 public virtual int Update(CloudAccountDA.FooterContentDataTable dataTable)
 {
     return(this.Adapter.Update(dataTable));
 }