示例#1
0
        private void Frm_BB_zhrbb_fl_Load(object sender, EventArgs e)
        {
            //load时,生成当天的,显示最近七天的数据
            string url = common_file.common_app.service_url + "BBfx/BBfx_app.asmx";

            object[] args = new object[7];
            args[0] = common_file.common_app.yydh;
            args[1] = common_file.common_app.qymc;
            args[2] = DateTime.Parse(DateTime.Now.ToShortDateString());
            args[3] = common_file.common_app.czy;
            args[4] = DateTime.Now;
            args[5] = 4;//生成所有的
            args[6] = common_file.common_app.xxzs;
            Server.BBfx.B_zhrbb B_zhrbb_new = new Hotel_app.Server.BBfx.B_zhrbb();
            object result = B_zhrbb_new.New_zhrbb_app(args[0].ToString(), args[1].ToString(), DateTime.Parse(args[2].ToString()), args[3].ToString(), DateTime.Parse(args[4].ToString()), int.Parse(args[5].ToString()), args[6].ToString());//,args[0])// Hotel_app.DynamicWebServiceCall.InvokeWebService(url, "New_zhrbb_app", args);

            if (result != null && result.ToString() == common_file.common_app.get_suc)
            {
                GenerateZhrbbFl(DateTime.Now.AddDays(-7).ToShortDateString(), DateTime.Now.ToShortDateString());
            }
        }
示例#2
0
        public void renew_bb(DateTime rq, int judge_rx, bool sh_ts, string bz)
        {
            //args[0] = common_file.common_app.yydh;
            //args[1] = common_file.common_app.qymc;
            //args[2] = rq;
            //args[3] = common_file.common_app.czy;
            //args[4] = DateTime.Now;
            //args[5] = judge_rx;//生成所有的
            //args[6] = common_file.common_app.xxzs;
            //object result = Hotel_app.DynamicWebServiceCall.InvokeWebService(url, "New_zhrbb_app", args);
            Server.BBfx.B_zhrbb B_zhrbb_new = new Hotel_app.Server.BBfx.B_zhrbb();
            string result = B_zhrbb_new.New_zhrbb_app(common_file.common_app.yydh, common_file.common_app.qymc, rq, common_file.common_app.czy, DateTime.Now, judge_rx, common_file.common_app.xxzs);

            if (result != null && result == common_file.common_app.get_suc)
            {
                if (sh_ts == true)
                {
                    common_file.common_app.Message_box_show(common_file.common_app.message_title, bz);
                }

                GetData(rq.ToShortDateString(), rq.ToShortDateString() + "  23:59:59");
                p_gl.Visible = false;
            }
        }