private void _helper_DomainObjectToGridRow(object sender, EventArgs e)
 {
     if ((e as DomainObjectToGridRowEventArgsNew).DomainObject != null)
     {
         QDORMAClosedRate obj  = (e as DomainObjectToGridRowEventArgsNew).DomainObject as QDORMAClosedRate;
         decimal          rate = obj.Qty / obj.TotalQty;
         DataRow          row  = DtSource.NewRow();
         row["RMAStatus"]   = this.languageComponent1.GetString(obj.Status);
         row["RMAQuantity"] = obj.Qty.ToString("##.##");
         row["OwnRate"]     = rate.ToString("##.##%");
         (e as DomainObjectToGridRowEventArgsNew).GridRow = row;
     }
 }
 private void _helper_DomainObjectToExportRow(object sender, EventArgs e)
 {
     if ((e as DomainObjectToExportRowEventArgsNew).DomainObject != null)
     {
         QDORMAClosedRate obj  = (e as DomainObjectToExportRowEventArgsNew).DomainObject as QDORMAClosedRate;
         decimal          rate = obj.Qty / obj.TotalQty;
         (e as DomainObjectToExportRowEventArgsNew).ExportRow =
             new string[] {
             this.languageComponent1.GetString(obj.Status),
             obj.Qty.ToString("##.##"),
             rate.ToString("##.##%")
         };
     }
 }