public static bool Init() { BusinessFacade.His.Common.CommonFacade cf = new BusinessFacade.His.Common.CommonFacade(); cf.RemotingLogin(); int zone = cf.GetServerDateZone(); LogService.GlobalDebugMessage("时区:" + zone); Skynet.Framework.Common.TimeSync.SyncTime(cf.GetServerDateTime(), zone); UpdateSystemConfig(); //return true; //初始化硬件 switch (AutoHostConfig.ReadCardType) { case "XUHUI": //Thread.Sleep(200); StringBuilder sbinput = new StringBuilder("<invoke name=\"READCARDALLOWCARDIN\"><arguments></arguments></invoke>"); string strResult = AutoServiceSDK.SDK.XuHuiInterface_DLL.XmlTcp(sbinput, 0); Skynet.LoggingService.LogService.GlobalInfoMessage("调用XmlTcp允许进卡方法返回:" + strResult + ",输出参数:" + sbinput.ToString()); break; default: break; } //卡类型 CardTypesFacade cardTypesFacade = new CardTypesFacade(); dsCardType = cardTypesFacade.FindByTypeName(SkyComm.getvalue("发卡卡类型")); if (dsCardType == null || dsCardType.Tables[0].Rows.Count == 0) { SkynetMessage.MsgInfo("发卡机的卡类型维护不正确,请与管理员联系!"); } //费用类别 ChargeKindFacade cktype = new ChargeKindFacade(); FeeType = SkyComm.getvalue("发卡费用类别"); DataSet dscktype = cktype.FindChargeKindByName(SkyComm.getvalue("发卡费用类别")); if (dscktype.Tables[0].Rows.Count < 0) { SkynetMessage.MsgInfo("发卡机的卡类型维护不正确,请与管理员联系!"); } else { FeeTypeID = dscktype.Tables[0].Rows[0]["CHARGEKINDID"].ToString(); } //获取银行卡预存,现金预存的配置 AddMoneyCashMode = SkyComm.getvalue("现金预存充值方式"); AddMoneyPosMode = SkyComm.getvalue("银行预存充值方式"); return(login()); }