Example #1
0
 protected void btnApprove_Click(object sender, EventArgs e)
 {
     try
     {
         GINProcessWrapper.ApproveGINEditRequest();
         GINProcessWrapper.RemoveGINProcessInformation();
         transferedData.Return();
     }
     catch (Exception ex)
     {
         errorDisplayer.ShowErrorMessage(ex.Message);
     }
 }
Example #2
0
 protected void btnOk_Click(object sender, EventArgs e)
 {
     try
     {
         //AuditTrailWrapper auditTrail = new AuditTrailWrapper(AuditTrailWrapper.TruckLoading);
         if (TruckLoadEditor.DataSource != null)
         {
             TruckLoadInfo originalLoad = new TruckLoadInfo();
             originalLoad.Copy(GINTruckInformation.Load);
             GINTruckInformation.Load.Copy((TruckLoadInfo)TruckLoadEditor.DataSource);
             //auditTrail.AddChange(originalLoad, GINTruckInformation.Load);
         }
         GINProcessWrapper.SaveLoading(GINTruckInformation.TruckId);//, auditTrail);
         GINProcessWrapper.RemoveGINProcessInformation();
         transferedData.Return();
     }
     catch (Exception ex)
     {
         errorDisplayer.ShowErrorMessage(ex.Message);
     }
 }
Example #3
0
 protected void btnSave_Click(object sender, EventArgs e)
 {
     //AuditTrailWrapper auditTrail = new AuditTrailWrapper(AuditTrailWrapper.TruckWeighing);
     if (GINDataEditor.DataSource != null)
     {
         GINInfo editedGin = new GINInfo();
         editedGin.Copy((GINInfo)GINDataEditor.DataSource);
         //auditTrail.AddChange(GINTruckInformation.GIN, editedGin);
         GINTruckInformation.GIN.Copy((GINInfo)GINDataEditor.DataSource);
     }
     try
     {
         GINProcessWrapper.SaveGIN(GINTruckInformation.TruckId);//, auditTrail);
         GINProcessWrapper.RemoveGINProcessInformation();
         transferedData.Return();
     }
     catch (Exception ex)
     {
         errorDisplayer.ShowErrorMessage(ex.Message);
     }
 }
Example #4
0
 protected void btnConfirm_Click(object sender, EventArgs e)
 {
     //AuditTrailWrapper auditTrail = new AuditTrailWrapper(AuditTrailWrapper.GINAcceptance);
     if (GINDataEditor.DataSource != null)
     {
         //GINInfo editedGin = new GINInfo();
         //editedGin.Copy((GINInfo)GINDataEditor.DataSource);
         //auditTrail.AddChange(GINTruckInformation.GIN, editedGin);
         GINTruckInformation.GIN.Copy((GINInfo)GINDataEditor.DataSource);
     }
     try
     {
         GINProcessWrapper.SaveGIN(GINTruckInformation.TruckId);//,auditTrail);
         GINProcessWrapper.GINSigned(GINTruckInformation.TruckId);
         //GINProcessWrapper.CompleteWorkflowTask(GINTruckInformation.TransactionId);
         GINProcessWrapper.RemoveGINProcessInformation();
         transferedData.Return();
     }
     catch (Exception ex)
     {
         errorDisplayer.ShowErrorMessage(ex.Message);
     }
 }
Example #5
0
 protected void btnCancelEdit_Click(object sender, EventArgs e)
 {
     GINProcessWrapper.RemoveGINProcessInformation();
     transferedData.Return();
 }
Example #6
0
 void PUNADataEditor_Cancel(object sender, EventArgs e)
 {
     GINProcessWrapper.RemoveGINProcessInformation();
     transferedData.Return();
 }
Example #7
0
 protected void btnCancel_Click(object sender, EventArgs e)
 {
     transferedData.Return();
 }