| | |
| | | // |
| | | Sub_SetReport(oFrm.sOpenTmp); |
| | | Report.Print(true); |
| | | // å¼¹æ¡å
³éåæ§è¡æ¥è¯¢ |
| | | Sub_FastQuery(); |
| | | } |
| | | } |
| | | |
| | |
| | | // |
| | | Sub_SetReport(oFrm.sOpenTmp); |
| | | Report.PrintPreview(true); |
| | | // å¼¹æ¡å
³éåæ§è¡æ¥è¯¢ |
| | | Sub_FastQuery(); |
| | | } |
| | | } |
| | | |
| | |
| | | // |
| | | Report = new GridppReport(); |
| | | Report.LoadFromFile(DBUtility.ClsPub.AppPath + @"\" + sOpenTmp + ".grf"); //here . |
| | | if (sOpenTmp=="å·¥åºæµè½¬å¡å°æ ç¾") |
| | | { |
| | | ClsCN SubCn = new ClsCN(); |
| | | DataSet DSet; |
| | | string sSql = ""; |
| | | Int64 lngBillKey = DBUtility.ClsPub.isLong(grdMain.Rows[grdMain.CurrentRow.Index].Cells[Fun_GetCol("hmainid")].Value); |
| | | sSql = "Select top 1 * from " + ViewName + " Where 1=1 and hmainid =" + lngBillKey+ " and HPRDORGID=" + DBUtility.ClsPub.HOrgID + " order by åæ®å· desc,hsubid "; |
| | | DSet = SubCn.RunProcReturn(sSql, ViewName, ref DBUtility.ClsPub.sExeReturnInfo); |
| | | //ç»å® |
| | | grdMain.DataSource = DSet.Tables[0].DefaultView; |
| | | } |
| | | Report.FetchRecord += new _IGridppReportEvents_FetchRecordEventHandler(ReportFetchRecordByDataTable); |
| | | } |
| | | |