private void generaAddRowToDt(ref DataTable dt, lib.APWorkFlow.NodeStatusRow drwfh, string regionCaption, string status) { DataRow dr; dr = dt.NewRow(); dr["RegionCaption"] = regionCaption; dr["Approver"] = DBNullConverter.ToStr(drwfh.APPROVED_BY); dr["FlowStatus"] = status; dr["AuditDate"] = DBNullConverter.ToStr(drwfh.COMPLETED_DATE); dr["Comment"] = DBNullConverter.ToStr(drwfh.COMMENTS); dr["IsView"] = 0; dr["IsPending"] = 0; dt.Rows.Add(dr); }
private void generaAddInTurnRowToDt(ref DataTable dt, lib.APWorkFlow.NodeStatusRow drwfh, string regionCaption, string status) { string userName = ((AuthorizationDS.StuffUserRow)Session["StuffUser"]).StuffName; DataRow dr; dr = dt.NewRow(); dr["RegionCaption"] = regionCaption; dr["Approver"] = userName; dr["FlowStatus"] = status; dr["AuditDate"] = string.Empty; dr["Comment"] = string.Empty; dr["IsView"] = 1; dr["IsPending"] = 0; dt.Rows.Add(dr); }
private void generaAddPendingRowToDt(ref DataTable dt, lib.APWorkFlow.NodeStatusRow drwfh, string regionCaption) { AuthorizationBLL auBLL = new AuthorizationBLL(); string approvalNames = auBLL.GetApprovalNamesByUserIds(DBNullConverter.ToStr(drwfh.PARTICIPANT)); DataRow dr = dt.NewRow(); dr["RegionCaption"] = regionCaption; dr["Approver"] = approvalNames; dr["FlowStatus"] = waitingStatus; dr["AuditDate"] = string.Empty; dr["Comment"] = null; dr["IsView"] = 0; dr["IsPending"] = 1; dt.Rows.Add(dr); }