Example #1
0
File: Form1.cs Project: neoml/print
        private void btnGetInvoice_Click(object sender, EventArgs e)
        {
            ServiceLib.DA.StoragePrintDA storagePrintDa = new StoragePrintDA();
            //MDY=
            //""
            //全部
            //""
            //0

            //string str = "01";
            //var dt = storagePrintDa.GetInvoice(str, "T20110623001730", "全部", "T", 0);

            //string s = string.Empty;
        }
Example #2
0
File: Form1.cs Project: neoml/print
        private void ExeThread(object nn)
        {
            //string tt = System.Threading.Thread.CurrentThread.GetHashCode().ToString();
            StringBuilder sb=new StringBuilder();
            var ac = new Action<string>(Showtext);
            sb.Append("user:"******"::");
            DataTable dt = new StoragePrintDA().GetInvoice(nn.ToString(), "快递", "", "", "", 5, "", "2011年双12");
            if(dt!=null && dt.Rows.Count>0)
            {
                foreach (DataRow row in dt.Rows)
                {
                    sb.Append(row["id"]+"-");
                }
            }

            this.Invoke(ac, sb.ToString());
        }
Example #3
0
File: Form1.cs Project: neoml/print
        private void button_hdname_Click(object sender, EventArgs e)
        {
            StoragePrintDA sd=new StoragePrintDA();
            //DataTable  ll = sd.GetHdNameAll();
            //if(ll.Count>0)
            //{

            //    comboBox1.DataSource = ll;
            //}
            //else
            //{
            //    textBox1.Text = "没有找到活动名称";
            //}
        }