/// <summary> /// 增|改事件 /// </summary> public void m_OK() { long lngRes = 0; if (!CheckInput()) { return; } clsT_Opr_Bih_OrderAttach_Transfer_Vo objItem = null; SetVo(out objItem); if (m_objViewer.m_intEditState == 0) //增加 { string strRecordID = ""; lngRes = m_objManage.m_lngAddNewOrderAttachTransfer(out strRecordID, objItem); if (lngRes > 0) { //增加附加单据影射--后加 m_objViewer.m_strAttachID = strRecordID; com.digitalwave.iCare.middletier.BIHOrderServer.clsBIHOrderService objTem = new com.digitalwave.iCare.middletier.BIHOrderServer.clsBIHOrderService(); lngRes = objTem.m_lngAddAttachOrder(m_objViewer.m_strOrderID, strRecordID); } } else if (m_objViewer.m_intEditState == 1) //编辑 { lngRes = m_objManage.m_lngModifyOrderAttachTransfer(objItem); } //报告操作结果 if (lngRes > 0) { MessageBox.Show(m_objViewer, "操作成功!", "提示框!", MessageBoxButtons.OK, MessageBoxIcon.Information); } else { MessageBox.Show(m_objViewer, "操作失败!", "错误!", MessageBoxButtons.OK, MessageBoxIcon.Error); } m_objViewer.Close(); }