Beispiel #1
0
        private void button6_Click_1(object sender, EventArgs e)
        {
            string msg        = "";
            var    resultData = YinHaiCOM.Init(out msg);

            if (resultData)
            {
                MessageBox.Show("初始化成功!!!");
            }
        }
Beispiel #2
0
        /// <summary>
        /// 医保签到
        /// </summary>
        /// <param name="controlParam"></param>
        /// <param name="inputParam"></param>
        /// <param name="operatorId"></param>
        /// <returns></returns>
        public ApiJsonResultData MedicalInsuranceSignIn(string controlParam, string inputParam, string operatorId)
        {
            //var resultXmlData = new MedicalInsuranceSignInXmlDto();
            //var xmlRowList = new List<MedicalInsuranceSignInXmlRowDto>
            //{
            //    new MedicalInsuranceSignInXmlRowDto()
            //    {
            //        BatchNo = DateTime.Now.ToString("yyyyMMddHHmmss"),
            //        SignInState = 1,
            //        SignInTime = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"),
            //        MedicalInsuranceOrganization = "007"
            //    }
            //};
            //resultXmlData.Row = xmlRowList;


            var iniParam = new YiHaiMedicalInsuranceOperationParam
            {
                //TransactionOutputXml = XmlHelp.YinHaiXmlSerialize(resultXmlData),
                TransactionNumber = "05",
                ControlParam      = controlParam,
                OperatorId        = operatorId,
                InputParam        = inputParam
            };
            string msg;
            var    initData = YinHaiCOM.Init(out msg);

            if (initData == false)
            {
                throw new  Exception("初始化失败:" + msg);
            }
            var resultData = YiHaiMedicalInsuranceOperation(iniParam);

            //设置操作人员
            YinHaiCOM.SetSignInUserId(operatorId);
            return(resultData);
        }