コード例 #1
0
 public void Delete(Forwarder FORWARDER)
 {
     using (DbManager db = new DbManager())
     {
         Accessor.Query.Delete(db, FORWARDER);
     }
 }
コード例 #2
0
 public void Save(Forwarder Forwader)
 {
     using (DbManager db = new DbManager())
     {
         if (Forwader.RecordNumber > 0)
         {
             Accessor.Query.Update(db, Forwader);
         }
         else
         {
             Accessor.Query.Insert(db, Forwader);
         }
     }
 }
コード例 #3
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!this.IsPostBack)
     {
         FORWARDER = PreviousPage.FORWARDER;
         hfForwarderRecordNumber.Value = FORWARDER.RecordNumber.ToString();
         fForwarder1.ForwarderAddress  = FORWARDER.ForwarderAddress;
         fForwarder1.ForwarderContact = FORWARDER.ForwarderContact;
         fForwarder1.ForwarderName = FORWARDER.ForwarderName;
         txtSearch.Focus();
     }
     txtSearch.Focus();
 }
コード例 #4
0
 protected void btnAddCustomer_Click(object sender, EventArgs e)
 {
     Image imgRecordNumber = (Image)gvForwarders.SelectedRow.FindControl("imgRecordNumber");
       FORWARDER = FM.GetForwarderByKey(long.Parse(imgRecordNumber.AlternateText));
 }