public void SetParameterRespond(string type, string result) { ResourceManager rm = new ResourceManager(typeof(SrDemo)); string set = rm.GetString("Set"); if (result == "1") { string oper = rm.GetString("resultOK"); sd.UpdateLog(set + type + oper); } else { string oper = rm.GetString("resultfailed"); sd.UpdateLog(set + type + oper); } }
private void button_InvertotyStartStop_Click(object sender, EventArgs e) { try { if (button_InvertotyStartStop.Text == "开始") { sd.ReaderControllor.StartMultiEPC(); QuencyDataBase_time.Enabled = true; // timer_md_query_Tick.Enabled = true; //停止前把剩余数据插入数据库中 // monitor = true; // show_EPC_t.Enabled = true; button_InvertotyStartStop.Text = "停止"; button_InvertotyStartStop.BackColor = Color.LightGreen; sd.UpdateLog("开始盘点物品"); // UpdateLog(databasecount.ToString()); } else if (button_InvertotyStartStop.Text == "停止") { sd.ReaderControllor.StopMultiEPC(); QuencyDataBase_time.Enabled = false; // timer_md_query_Tick.Enabled = false; //停止前把剩余数据插入数据库中 // monitor = false; // show_EPC_t.Enabled = false; // db.InsertMultiData(0); // db.InsertMultiData(1); button_InvertotyStartStop.Text = "开始"; button_InvertotyStartStop.BackColor = Color.Gainsboro; sd.UpdateLog("停止盘点物品"); // UpdateLog(databasecount.ToString()); } } catch (Exception ex) { sd.UpdateLog(ex.ToString()); } }
virtual public void updatewiew(string[] subinfo) { sd.UpdateLog("Operate stccess"); }