예제 #1
0
 /////////////////////////////////////////////////////////////////////////// FOR COMPANY PAYMENTS
 protected void ddPaidAmount_SelectedIndexChanged(object sender, EventArgs e)
 {
     GoDine GD = new GoDine();
     if (!(ddPaidAmount.SelectedValue.Contains("---")))
     {
         int companyID = GD.Get_CompanyID_By_CompanyName(ddPaidAmount.SelectedValue);
         CompanyGiftcardSales giftcards = GD.GetGiftcardSalesForCompany(companyID);
         lblPaidAmount.Text = "Amount left to pay for this company = " + Math.Round(GD.CompanyStatus_from_CompanyID(companyID).toPay + giftcards.totalInFromGCDiscounted, 2);
     }
     else {
         tbPaidAmount.Text = "";
     }
 }