The final processing can only be handled by the data between the current accounting, and an important part of the final process is to be reviewed to the current month.
Mark the marker,
The following code is used to locate the current accounting period, setting the audit state during the current accounting as a modified state.
Function control_Grid ()
{
Var Grid = WGGGRIDBYID ("WGRID");
Var htbl = grid.getroottable (). getTBTBELEMENT ();
IF (htbl.rows.length> 0)
{
Var rows = htbl.rows;
For (var i = 0; i { IF (wggetcellbyname (rows [i], "period_chkbz"). ChildNodes [0] .Checked == false) { WGGETCELLBYNAME (Rows [i], "Period_chkbz"). ChildNodes [0] .disabled = false; FRMQMCL.TXTBH.VALUE = WGGETCELLBYNAME (rows [i], "period_bh"). innerText; Return; } } } } The following code is used to update the table during the accounting period Private void wgrid_updaterow (object sender, isnet.Webui.Webgrid.Roweventargs E) { (DATAROWVIEW) E.Row.Datarow) ["Period_CHK"] = "admin"; (DATAROWVIEW) E.Row.Datarow) ["period_chkdate"] = datetime.now.toshortdateString (); DataSet dsx = (dataset) wgrid.datasource; DataSet DST = (Dataset) WGRIDTMP.DASOURCE; Dst.Merge (DSx.Tables ["WebGrid"]. getChanges (Data.DataRowState.Modified), false, system.data.missingschemaAction.add); Wgridtmp.datasource = DST; } Of course, it is only part of the accounting period, and the most important is to handle the dose during the processed accounting period. First transfer the monthly season Single, all displayed, and then processed one by one.