示例#1
0
文件: Main.cs 项目: abhcr/adGiga
 private void newSale_Click(object sender, EventArgs e)
 {
     estimateForm = new EstimateForm();
     estimateForm.CreateNewSale(date.Value);
     estimateForm.Dispose();
     RefreshAll();
 }
示例#2
0
 private void button1_Click(object sender, EventArgs e)
 {
     estimateForm = new EstimateForm();
     estimateForm.GetPayment(DateTime.Parse(date.Text + " " + time.Text));
     estimateForm.Dispose();
     RefreshAll();
 }
示例#3
0
文件: Main.cs 项目: abhcr/adGiga
 private void paymentReceived_Click(object sender, EventArgs e)
 {
     estimateForm = new EstimateForm();
     //payment recieved agnst sale. isPurchase=false.
     estimateForm.GetPayment(DateTime.Parse(date.Text + " " + time.Text), false);
     estimateForm.Dispose();
     RefreshAll();
 }
示例#4
0
文件: Main.cs 项目: abhcr/adGiga
 private void paymentMade_Click(object sender, EventArgs e)
 {
     estimateForm = new EstimateForm();
     //payment made against purchase. isPurchase=true
     estimateForm.GetPayment(DateTime.Parse(date.Text + " " + time.Text), true);
     estimateForm.Dispose();
     RefreshAll();
 }
示例#5
0
文件: Main.cs 项目: abhcr/adGiga
 private void modify_Click(object sender, EventArgs e)
 {
     estimateForm = new EstimateForm();
     estimateForm.UpdateSale(
         int.Parse((saleSummaryGrid.SelectedRows[0].Cells[0].Value.ToString())));
     estimateForm.Dispose();
     RefreshAll();
 }
示例#6
0
文件: Main.cs 项目: abhcr/adGiga
 private void newPurchaseButton_Click(object sender, EventArgs e)
 {
     ToggleBackgroundRefreshing(false);
     estimateForm = new EstimateForm();
     estimateForm.CreateNewPurchase(date.Value);
     estimateForm.Dispose();
     RefreshAll();
     ToggleBackgroundRefreshing(true);
 }
示例#7
0
 private void saleGrid_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
 {
     if (saleGrid.SelectedRows[0].Tag != null)
     {
         int transId = -1;
         if (int.TryParse(saleGrid.SelectedRows[0].Tag.ToString(), out transId))
         {
             if (transId > -1)
             {
                 EstimateForm editTransaction = new EstimateForm();
                 editTransaction.UpdateSale(transId);
                 PopulateValues();
             }
         }
     }
 }