public void GetForm(string MessageID, ref Panel panel,bool IsApproval,ref string error) { string xml = T_Bill_GetDetailByForm(MessageID); StringBuilder stringBuilder = new StringBuilder(); BillView billView = new BillView(); ObjBill bill = null; if (null != xml && xml.Length > 0) { bill = billView.CreateView(panel, xml, IsApproval,ref error); } }
protected void Page_Load(object sender, EventArgs e) { MessageID = Request["MessageID"] + ""; //MessageID = "d0235c96-6473-4ed0-a34d-c156fba9b115"; SystemCode = Request["SystemCode"] + ""; //SystemCode = "OA"; PERSONALRECORDID = Request["PERSONALRECORDID"] + ""; string xml = Get_Record_DetailByForm(SystemCode + "_" + MessageID); //string xml = MobileService.Get_Record_DetailByForm(PERSONALRECORDID); ObjBill bill = null; BillView billView = new BillView(); if (null != xml && xml.Length > 0) { try { bill = billView.CreateView(this.pnl1, xml, IsApproval, ref error); if (bill != null) { billText = bill.Text; } } catch { Response.Write(error); } } else { Response.Write("对不起,当前数据版本不对,请在电脑上查看"); } }