Ejemplo n.º 1
0
        private void Save()
        {
            if (GINIssuanceEditor.DataSource != null)
            {
                GINTruckInformation.GIN.Copy((GINInfo)GINIssuanceEditor.DataSource);
            }
            if (TruckWeightEditor.DataSource != null)
            {
                TruckWeightInfo truckWeight = (TruckWeightInfo)TruckWeightEditor.DataSource;

                GINTruckInformation.Weight.Copy(truckWeight);
            }
            GINProcessWrapper.SaveScaling(GINTruckInformation.TruckId);
            GINProcessWrapper.SaveGIN(GINTruckInformation.TruckId);
        }
Ejemplo n.º 2
0
 protected void btnOk_Click(object sender, EventArgs e)
 {
     try
     {
         //AuditTrailWrapper auditTrail = new AuditTrailWrapper(AuditTrailWrapper.TruckWeighing);
         TruckWeightInfo originalWeight = new TruckWeightInfo();
         originalWeight.Copy(GINTruckInformation.Weight);
         GINTruckInformation.Weight.Copy((TruckWeightInfo)TruckWeightEditor.DataSource);
         //auditTrail.AddChange(originalWeight, GINTruckInformation.Weight);
         GINProcessWrapper.SaveScaling(GINTruckInformation.TruckId);//, auditTrail);
         GINProcessWrapper.RemoveGINProcessInformation();
         transferedData.Return();
     }
     catch (Exception ex)
     {
         errorDisplayer.ShowErrorMessage(ex.Message);
     }
 }