public void Call(DmType dmtype, string callstring) { //InitCom(); //string StrMain = callstring; //if ( dmtype == DmType.姓名 ) //{ // StrMain = "姓名:" + callstring; //} //if ( dmtype == DmType.应收 ) //{ // StrMain = dmtype.ToString() + ":" + callstring; //} //if ( dmtype == DmType.实收 ) //{ // StrMain = dmtype.ToString() + ":" + callstring; //} //if ( dmtype == DmType.找零 ) //{ // StrMain = dmtype.ToString() + ":" + callstring; //} //if ( dmtype == DmType.欢迎 ) //{ // if ( callstring == "抱歉,暂停工作" ) // StrMain = "抱歉,暂停工作"; // else // { // //DispDefaultData(); // //return; // StrMain = "您好"; // } //} //if ( dmtype == DmType.清除 ) //{ // StopPost(); // StrMain = "您好"; //} //int ret2 = SendDataChar( StrMain , FontName , xColor , F_Width , F_Height , // LeftSpa , TopSpa , WordSpa , RowSpa , EnterMode , ExitMode , EnterSpeed , ExitSpeed , StopTime ); aa a = new aa(dmtype, callstring); if (dmtype == DmType.应收 || dmtype == DmType.实收) { Thread t = new Thread(new ThreadStart(a.call)); t.Start(); } else { a.call(); } }
//SHL-1语音收费报价器 //浦鑫科技有限公司 /// <summary> /// 显示屏显示 /// </summary> /// <param name="dmtype"></param> /// <param name="callstring"></param> public void Call(DmType dmtype, string callstring) { if (Convertor.IsNumeric(com) == false) { throw new Exception("通讯端口必须设为数字"); } int ncom = Convert.ToInt32(Convertor.IsNull(com, "0")); aa a = new aa(dmtype, callstring); if (dmtype == DmType.应收 || dmtype == DmType.实收) { Thread t = new Thread(new ThreadStart(a.call)); t.Start(); } else { a.call(); } }