Ejemplo n.º 1
0
        private void btn_ReadTempFile_Click(object sender, EventArgs e)
        {
            string TempFileUrl = PutAway.TempFileUrl;

            if (File.Exists(TempFileUrl))
            {
                DataSet ds = MySerialization.DeSerialize(TempFileUrl);
                if (ds.Tables[0].Rows.Count == 0)
                {
                    MessageBox.Show("数据为空,请扫描新入库单!");
                }
                else
                {
                    PutAwayScan pas = new PutAwayScan(ds);
                    pas.Show();
                    pas.Closed += new EventHandler(pas_Closed);
                    this.Hide();
                }
            }
        }