Beispiel #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            //判断是日期查找还是普通查找
            List <JCInfoModel> list = new List <JCInfoModel>();

            if (checkBox3.Checked)
            {
                //日期查找
                string date       = "";
                string date1      = "";
                bool   BeginOrEnd = false; //判断是寄存日期还是取走日期默认false为寄存日期的查找
                if (radioButton1.Checked)  //选择为寄存日期
                {
                    BeginOrEnd = false;
                    date       = TimeGuiGe.TimePicterBegin(dateTimePicker1.Text);
                    date1      = TimeGuiGe.TimePicterEng(dateTimePicker1.Text);
                    list       = jcbll.jcDateSelect(date, date1, BeginOrEnd);
                    databind1(list);
                    this.Close();
                    return;
                }
                BeginOrEnd = true;
                date       = TimeGuiGe.TimePicterBegin(dateTimePicker2.Text);
                date1      = TimeGuiGe.TimePicterEng(dateTimePicker2.Text);
                list       = jcbll.jcDateSelect(date, date1, BeginOrEnd);
                databind1(list);
                this.Close();
                return;
            }
            //普通查找
            bool   mohu    = checkBox4.Checked;
            bool   jc      = checkBox1.Checked;
            bool   qz      = checkBox2.Checked;
            string type    = comboBox1.Text.ToString().Trim();;
            string neirong = textBox1.Text.Trim();

            list = jcbll.jcContentSelect(mohu, jc, qz, type, neirong);
            databind1(list);
            this.Close();
        }
Beispiel #2
0
        private void button1_Click(object sender, EventArgs e)
        {
            string dpname = "";

            if (comboBox3.Visible)
            {
                dpname = comboBox3.Text;
            }
            begindate = TimeGuiGe.TimePicterBegin(dateTimePicker1.Text);
            enddate   = TimeGuiGe.TimePicterEng(dateTimePicker2.Text);
            yginfo    = comboBox1.Text.Trim();
            lbinfo    = comboBox2.Text.Trim();
            int selectIndex = tabControl1.SelectedIndex;

            switch (selectIndex)
            {
            //办卡统计
            case 0: bktjdata(dpname);
                break;

            //充值统计
            case 1: cztjdata(dpname);
                break;

            //寄存统计
            case 2: jctjdata(dpname);
                break;

            //取走统计
            case 3: qztjdata(dpname);
                break;

            //会员卡消费统计
            case 4: xftjdata(dpname);
                break;

            //收入统计
            case 5: srtjdata(dpname);
                break;

            //短信统计
            case 6: dxtjdata(dpname);
                break;

            //商品销售
            case 7: spxsdata(dpname);
                break;

            case 8: spjhdata(dpname);
                break;

            case 9: ExitCard(dpname);
                break;

            case 10: Exitdan(dpname);
                break;

            case 11: QMoneyJC(dpname);
                break;

            case 12: wpqzAction(dpname);
                break;

            case 13: sendXI(dpname);
                break;

            case 14: InDP(dpname);
                break;

            case 15: againSend(dpname);
                break;

            case 16: YGFinish(dpname);
                break;
                //case 17: XMoneyLS(dpname);
                //    break;
            }
        }