示例#1
0
 //Добавление записи в таблицу ASSISTANCE
 private void ASCE_AddRecordBTN_Click(object sender, EventArgs e)
 {
     TablesClass.AddRecord(Tables.ASSISTANCE.Name(), new Dictionary <string, string>
     {
         { AssistanceFileds.ASCE_AssCode.Name(), ASCE_AssistantCB.SelectedValue.ToString() },
         { AssistanceFileds.ASCE_OrdCode.Name(), ASCE_OrderCB.SelectedValue.ToString() }
     });
     //TablesClass.RefreshGrid(dataGrid);
 }
示例#2
0
 //Добавление записи в таблицу SERVICES
 private void SER_AddRecordBTN_Click(object sender, EventArgs e)
 {
     TablesClass.AddRecord(Tables.SERVICES.Name(), new Dictionary <string, string>
     {
         { ServicesFileds.SER_Description.Name(), SER_DescriptionTB.Text },
         { ServicesFileds.SER_Price.Name(), SER_PriceTB.Text }
     });
     //TablesClass.RefreshGrid(dataGrid);
 }
示例#3
0
 //Добавление записи в таблицу ASSISTANTS
 private void ASS_AddRecordBTN_Click(object sender, EventArgs e)
 {
     TablesClass.AddRecord(Tables.ASSISTANTS.Name(), new Dictionary <string, string>
     {
         { AssistantsFileds.ASS_Fullname.Name(), ASS_FullnameTB.Text },
         { AssistantsFileds.ASS_Phone.Name(), ASS_PhoneMTB.Text },
         { AssistantsFileds.ASS_Salary.Name(), ASS_SalaryTB.Text }
     });
     //TablesClass.RefreshGrid(dataGrid);
 }
示例#4
0
 //Добавление записи в таблицу CUSTOMERS
 private void CUS_AddRecordBTN_Click(object sender, EventArgs e)
 {
     TablesClass.AddRecord(Tables.CUSTOMERS.Name(), new Dictionary <string, string>
     {
         { CustomerFields.CUS_Fullname.Name(), CUS_FullnameTB.Text },
         { CustomerFields.CUS_Adress.Name(), CUS_AdressTB.Text },
         { CustomerFields.CUS_Phone.Name(), CUS_PhoneMTB.Text }
     });
     //TablesClass.RefreshGrid(dataGrid);
 }
示例#5
0
 //Добавление записи в таблицу ORDERS
 private void ORD_AddRecordBTN_Click(object sender, EventArgs e)
 {
     TablesClass.AddRecord(Tables.ORDERS.Name(), new Dictionary <string, string>
     {
         { OrdersFileds.ORD_CusCode.Name(), ORD_CustomersCB.SelectedValue.ToString() },
         { OrdersFileds.ORD_PhoCode.Name(), ORD_PhotographersCB.SelectedValue.ToString() },
         { OrdersFileds.ORD_SerCode.Name(), ORD_ServicesCB.SelectedValue.ToString() },
         { OrdersFileds.ORD_Date.Name(), ORD_DateMTB.Text },
         { OrdersFileds.ORD_Exec.Name(), Convert.ToInt32(ORD_ExecCB.Checked).ToString() }
     });
     //TablesClass.RefreshGrid(dataGrid);
 }
示例#6
0
 //Добавление записи в таблицу PHOTOGRAPHERS
 private void PHO_AddRecordBTN_Click(object sender, EventArgs e)
 {
     TablesClass.AddRecord(Tables.PHOTOGRAPHERS.Name(), new Dictionary <string, string>
     {
         { PhotographersFileds.PHO_Fullname.Name(), PHO_FullnameTB.Text },
         { PhotographersFileds.PHO_Experience.Name(), PHO_ExperienceTB.Text },
         { PhotographersFileds.PHO_Date.Name(), PHO_DateMTB.Text },
         { PhotographersFileds.PHO_Phone.Name(), PHO_PhoneMTB.Text },
         { PhotographersFileds.PHO_Adress.Name(), PHO_AdressTB.Text },
         { PhotographersFileds.PHO_Salary.Name(), PHO_SalaryTB.Text }
     });
     //TablesClass.RefreshGrid(dataGrid);
 }