/// <summary> ///Lis Interface, said to be as long as the interface to start their FTP together, I do not know what to do, anyway, according to the requirements of LIS to do bai \///by WEIHF 2014-9-1///to WEIHF: In order to update the LIS program/// /// </summary> /// <returns></returns> Private voidstarlisftp () {Try{system.diagnostics.process[] proc= System.Diagnostics.Process.GetProcessesByName ("neulisftp"); if(Proc. Length >0) { for(inti =0; I < Proc. Length; i++) {Proc[i]. Kill (); } } stringPath = Application.startuppath +"\\neusoftlis/"+"NeuLisFTP.exe"; Neusoft.HISFC.Models.Base.Employee ConInfo= Neusoft.FrameWork.Management.Connection.Operator asNeusoft.HISFC.Models.Base.Employee; stringStrargument = ConInfo.Dept.ID +","+ ConInfo.Dept.Name +","+ ConInfo.Dept.ID +","+ ConInfo.Dept.Name +","+ ConInfo.Nurse.ID +","+ ConInfo.Nurse.Name +","+ conInfo.EmployeeType.ID.ToString () +","+"hospitalization"; System.Diagnostics.ProcessStartInfo PInfo=NewSystem.Diagnostics.ProcessStartInfo (path, strargument); System.Diagnostics.Process Process=NewSystem.Diagnostics.Process (); Process. StartInfo=PInfo; Process. Startinfo.useshellexecute=false; Process. Start (); } Catch(Exception ex) {MessageBox.Show ("Start the crisis value program error, please start manually or contact the information section! "+Ex. Message); } } #regionby YANG.BF September 25, 2015 16:40:36 {d986e343-de6b-410a-89ef-47f93418cde1} whether the LIS automatic Update is turned on at the nurse stationNeusoft.FrameWork.Management.ControlParam ctlmgr=NewNeusoft.FrameWork.Management.ControlParam (); if(Ctlmgr.querycontrolerinfo ("Kh_lis") =="1") { if(System.IO.File.Exists (neusoft.framework.winforms.classes.function.currentpath+"\\NeusoftLis\\NeuLisFTP.exe") {Thread lisftp=NewThread ( This. STARLISFTP); Lisftp.name="neulisftp"; Lisftp.isbackground=true; Lisftp.start (); } Else{MessageBox.Show ("There are no NeuLisFTP.exe files in the Neusoftlis directory"); } } #endregion
How C # calls executable program arguments