Esempio n. 1
0
        /// <summary>
        ///  保存报告字段信息后,需要更新估价对象的报告实例ID
        /// </summary>
        /// <param name="info"></param>
        /// <returns></returns>
        private void UpdateProjectInstanceDocumentID(decimal projectId, decimal instance_Document_ID, EntrustItem t)
        {
            BaseResult br = new BaseResult()
            {
                Succeeded = true, Errors = new List <string>()
            };

            using (BaseDB dbHelper = new RedasDBHelper())
            {
                Dictionary <string, object> dic = new Dictionary <string, object>();
                dic.Add("i_project_id", projectId);
                dic.Add("i_instanceDocument_id", instance_Document_ID);
                dic.Add("i_type", (int)t);
                dbHelper.ExecuteNonQueryProc("pkg_project.sp_InstanceDocumentID_update", dic);
            }
        }
Esempio n. 2
0
        /// <summary>
        /// 更改估价对象表的ReportFileID
        /// </summary>
        /// <param name="objectId"></param>
        /// <param name="report_file_id"></param>
        public void UpdateReportFileID(decimal objectId, decimal report_file_id, EntrustItem t)
        {
            BaseResult br = new BaseResult()
            {
                Succeeded = true, Errors = new List <string>()
            };

            using (BaseDB dbHelper = new RedasDBHelper())
            {
                Dictionary <string, object> dic = new Dictionary <string, object>();
                dic.Add("i_object_id", objectId);
                dic.Add("i_report_file_id", report_file_id);
                dic.Add("i_type", (int)t);
                dbHelper.ExecuteNonQueryProc("PKG_OBJECT.sp_ReportFileID_update", dic);
            }
        }