/// <summary> /// 得到长期账单 /// </summary> private void GetLongPresData() { if (zy_Patlist != null) { view.BindLongPresControlData = zyPresOrder.GetPresDataTable(view.PresDate, 0); view.lblongFee = zyPresOrder.GetPresAllFee(view.PresDate, 0).ToString(); DataTable dt = view.BindLongPresControlData; for (int i = 0; i < dt.Rows.Count; i++) { ZY_PresOrder zyPS = new ZY_PresOrder(); zyPS = (ZY_PresOrder)HIS.SYSTEM.PubicBaseClasses.ApiFunction.DataTableToObject(dt, i, zyPS); ShowRowColor(zyPS, i, -1); } if (dt.Rows.Count > 0) { view.PresDocCode = dt.Rows[dt.Rows.Count - 1]["PRESDOCCODE"].ToString(); } } }