예제 #1
0
 private void FillGrid()
 {
     try
     {
         var con  = new BarcodeReaderEntities1();
         var data = con.BarGoodsInfoes.ToList();
         BarcodeData.ItemsSource = data;
     }
     catch (Exception ex)
     {
         _msg.Exception_MessageBox(ex, (_str.ResCallByName("DataGrid_Warning")));
         LetThemChoose((_str.ResCallByName("DataGrid_Error")), _str.ResCallByName("Title3"));
     }
 }
예제 #2
0
        protected void SendDataTo(string indata)
        {
            System.Net.ServicePointManager.DefaultConnectionLimit = Settings.Default._connectionLimit;
            var client = new GoodsInfo.GoodsInfoClient();

            Send = Str.ResCallByName("Successfully_Sended");
            try
            {
                client.AddCheckInOutRow(indata, Settings.Default.PriceCheckerId);
                Log.TwiceLogger(Str.ResCallByName("Send") + client.Endpoint.Address);
            }

            catch (Exception ex)
            {
                Msg.Exception_MessageBox(ex, (Str.ResCallByName("SendFail")));
                Send = Str.ResCallByName("SendError");
            }
        }