private void btnOK_Click(object sender, System.EventArgs e) { try { if (!this.BOMValidate()) { return; } BillOfMaterials bom = GetBOM(); Dept curDept = Session[ConstValue.LOGIN_DEPT_SESSION] as Dept; Oper curOper = Session[ConstValue.LOGIN_USER_SESSION] as Oper; BusiLog busiLog = new BusiLog(); busiLog.cnvcOperName = curOper.cnvcOperName; busiLog.cnvcDeptID = curDept.cnvcDeptID; busiLog.cnvcDeptName = curDept.cnvcDeptName; ReportQueryFacade.UpdateBOM(bom, busiLog); this.Popup("专供油领料单修改成功"); } catch (Exception ex) { this.Popup(ex.Message); } }