private void _helper_DomainObjectToGridRow(object sender, EventArgs e) { if ((e as DomainObjectToGridRowEventArgsNew).DomainObject != null) { OnWipInfoOnOperation obj = (e as DomainObjectToGridRowEventArgsNew).DomainObject as OnWipInfoOnOperation; DataRow row = DtSource.NewRow(); row["OperationCode"] = obj.OperationCode; row["QuantityOnOperation"] = obj.OnWipQuantityOnOperation; row["OnWipDistributing"] = ""; (e as DomainObjectToGridRowEventArgsNew).GridRow = row; } }
private void _helper_DomainObjectToExportRow(object sender, EventArgs e) { if ((e as DomainObjectToExportRowEventArgsNew).DomainObject != null) { OnWipInfoOnOperation obj = (e as DomainObjectToExportRowEventArgsNew).DomainObject as OnWipInfoOnOperation; (e as DomainObjectToExportRowEventArgsNew).ExportRow = new string[] { this.ViewState["ItemCode"].ToString(), obj.OperationCode, obj.OnWipQuantityOnOperation.ToString() }; } }
private void _helper_DomainObjectToGridRow(object sender, EventArgs e) { if ((e as DomainObjectToGridRowEventArgs).DomainObject != null) { OnWipInfoOnOperation obj = (e as DomainObjectToGridRowEventArgs).DomainObject as OnWipInfoOnOperation; (e as DomainObjectToGridRowEventArgs).GridRow = new UltraGridRow(new object[] { obj.OperationCode, obj.OnWipQuantityOnOperation, "" } ); } }