예제 #1
0
 public void vendor_delete(int ID)
 {
     vendor.Delete(ID);
     Insert_vendor_GridView.DataBind();
     Update_vendor_GridView.DataBind();
     Delete_vendor_GridView.DataBind();
 }
예제 #2
0
 public vendor vendor_update(int ID)
 {
     vendor                        = vendor.Select(ID);
     vendor.vendor_id              = Convert.ToInt32(Update_vendor_id_txt.Text);
     vendor.vendor_name            = Update_vendor_name_txt.Text;
     vendor.phone_num              = Update_phone_num_txt.Text;
     vendor.email                  = Update_email_txt.Text;
     vendor.address_id             = Convert.ToInt32(Update_address_id_txt.Text);
     vendor.Vendor_address2        = Convert.ToInt32(Update_Vendor_address2_txt.Text);
     vendor.vendor_job_assign      = Update_vendor_job_assign_txt.Text;
     vendor.vendor_start_date      = Convert.ToDateTime(Update_vendor_start_date_txt.Text);
     vendor.vendor_end_date        = Convert.ToDateTime(Update_vendor_end_date_txt.Text);
     vendor.vendor_meth_of_contact = Update_vendor_meth_of_contact_txt.Text;
     vendor.vendor_status          = Update_vendor_status_txt.Text;
     vendor.vendor_meth_of_pay     = Update_vendor_meth_of_pay_txt.Text;
     vendor.vendor_type            = Update_vendor_type_txt.Text;
     vendor.vendor_comments        = Update_vendor_comments_txt.Text;
     vendor.primary_fName          = Update_primary_fName_txt.Text;
     vendor.primary_lName          = Update_primary_lName_txt.Text;
     vendor.primary_phone          = Update_primary_phone_txt.Text;
     vendor.sec_fName              = Update_sec_fName_txt.Text;
     vendor.sec_lName              = Update_sec_lName_txt.Text;
     vendor.sec_phone              = Update_sec_phone_txt.Text;
     vendor.Update(vendor);
     Insert_vendor_GridView.DataBind();
     Update_vendor_GridView.DataBind();
     Delete_vendor_GridView.DataBind();
     return(vendor);
 }