Exemplo n.º 1
0
        private void LineItem_TableNewRow(object sender, System.Data.DataTableNewRowEventArgs e)
        {
            int         maxTransID = 0;
            LineItemRow newLine    = e.Row as LineItemRow;

            foreach (LineItemRow row in this.LineItem)
            {
                if (row.transactionID > maxTransID)
                {
                    maxTransID = row.transactionID;
                }
            }

            if (maxTransID >= this.TransactionID)
            {
                newLine.transactionID = maxTransID + 1;
            }
            else
            {
                newLine.transactionID = this.TransactionID;
            }

            newLine.id                 = this.LineItemID++;
            newLine.description        = "";
            newLine.confirmationNumber = "";
        }
Exemplo n.º 2
0
        private void LineItem_TableNewRow(object sender, System.Data.DataTableNewRowEventArgs e)
        {
            stayOut = true;
            LineItemRow newLine = e.Row as LineItemRow;

            newLine.id                 = DBquery.getNewID("id", "LineItem");
            newLine.transactionID      = DBquery.getNewID("transactionID", "LineItem");
            newLine.date               = DateTime.Today;
            newLine.typeID             = SpclLineType.NULL;
            newLine.accountID          = currentAccountID;
            newLine.oppAccountID       = SpclAccount.NULL;
            newLine.description        = "";
            newLine.confirmationNumber = "";
            newLine.envelopeID         = SpclEnvelope.NULL;
            newLine.complete           = LineState.PENDING;
            newLine.amount             = 0.00m;
            newLine.creditDebit        = LineCD.CREDIT;
            newLine.lineError          = false;
            newLine.transactionError   = false;

            stayOut = false;
        }
Exemplo n.º 3
0
 void posDataTable_TableNewRow(object sender, System.Data.DataTableNewRowEventArgs e)
 {
     CheckValues(e.Row as posRow);
 }
Exemplo n.º 4
0
 void departmentDataTable_TableNewRow(object sender, System.Data.DataTableNewRowEventArgs e)
 {
     this.CheckValues(e.Row as departmentRow);
 }
Exemplo n.º 5
0
 private void TB_ATIVIDADE_TableNewRow(object sender, System.Data.DataTableNewRowEventArgs e)
 {
     //throw new NotImplementedException();
 }
 private void OnAccountDataTableNewRow(object sender, System.Data.DataTableNewRowEventArgs args)
 {
     this.ResetDataTableRowOrder( );
 }
Exemplo n.º 7
0
 private void LineType_TableNewRow(object sender, System.Data.DataTableNewRowEventArgs e)
 {
     (e.Row as LineTypeRow).id = this.LineTypeID++;
 }
Exemplo n.º 8
0
 private void EnvelopeLine_TableNewRow(object sender, System.Data.DataTableNewRowEventArgs e)
 {
     (e.Row as EnvelopeLineRow).id          = this.EnvelopeLineID++;
     (e.Row as EnvelopeLineRow).description = "";
 }
Exemplo n.º 9
0
 private void AccountType_TableNewRow(object sender, System.Data.DataTableNewRowEventArgs e)
 {
     (e.Row as AccountTypeRow).id = this.AccountTypeID++;
 }
Exemplo n.º 10
0
 void employee_rolesDataTable_TableNewRow(object sender, System.Data.DataTableNewRowEventArgs e)
 {
     CheckValues(e.Row as employee_rolesRow);
 }
Exemplo n.º 11
0
 void pos_trans_uploadDataTable_TableNewRow(object sender, System.Data.DataTableNewRowEventArgs e)
 {
     this.CheckValues(e.Row as pos_trans_uploadRow);
 }
Exemplo n.º 12
0
 void menu_panelsDataTable_TableNewRow(object sender, System.Data.DataTableNewRowEventArgs e)
 {
     this.CheckValues(e.Row as menu_panelsRow);
 }
Exemplo n.º 13
0
 void surchargeDataTable_TableNewRow(object sender, System.Data.DataTableNewRowEventArgs e)
 {
     this.CheckValues(e.Row as surchargeRow);
 }
Exemplo n.º 14
0
 void customerDataTable_TableNewRow(object sender, System.Data.DataTableNewRowEventArgs e)
 {
     this.CheckValues(e.Row as customerRow);
 }
Exemplo n.º 15
0
 private void TB_PREDECESSORAS_TableNewRow(object sender, System.Data.DataTableNewRowEventArgs e)
 {
 }
Exemplo n.º 16
0
 void pos_keyDataTable_TableNewRow(object sender, System.Data.DataTableNewRowEventArgs e)
 {
     this.CheckValues(e.Row as pos_keyRow);
 }
Exemplo n.º 17
0
 void Pets_TableNewRow(object sender, System.Data.DataTableNewRowEventArgs e)
 {
     // Update Pets related ID for existing appointment
     e.Row["OwnerID"] = controller.AppointmentId;
 }
Exemplo n.º 18
0
 private void Envelope_TableNewRow(object sender, System.Data.DataTableNewRowEventArgs e)
 {
     (e.Row as EnvelopeRow).id = this.EnvelopeID++;
 }
Exemplo n.º 19
0
 void retail_storeDataTable_TableNewRow(object sender, System.Data.DataTableNewRowEventArgs e)
 {
     this.CheckValues(e.Row as retail_storeRow);
 }
Exemplo n.º 20
0
 void itemDataTable_TableNewRow(object sender, System.Data.DataTableNewRowEventArgs e)
 {
     this.CheckValues(e.Row as itemRow);
 }
Exemplo n.º 21
0
			void currency_codeDataTable_TableNewRow(object sender, System.Data.DataTableNewRowEventArgs e)
			{
				this.CheckValues(e.Row as currency_codeRow);
			}
Exemplo n.º 22
0
 void promotionDataTable_TableNewRow(object sender, System.Data.DataTableNewRowEventArgs e)
 {
     CheckValues(e.Row as promotionRow);
 }
Exemplo n.º 23
0
 void organizationDataTable_TableNewRow(object sender, System.Data.DataTableNewRowEventArgs e)
 {
     this.CheckValues(e.Row as organizationRow);
 }
Exemplo n.º 24
0
 void ItemGroupDataTable_TableNewRow(object sender, System.Data.DataTableNewRowEventArgs e)
 {
     this.CheckValues(e.Row as ItemGroupRow);
 }
Exemplo n.º 25
0
 void table_detailsDataTable_TableNewRow(object sender, System.Data.DataTableNewRowEventArgs e)
 {
     this.CheckValues(e.Row as table_detailsRow);
 }