Beispiel #1
0
        private void GetWxinfo(IEnumerable <string> Plist)
        {
            string mm = string.Empty;

            foreach (var c in Plist)
            {
                mm += "'" + c + "',";
            }
            if (mm == string.Empty)
            {
                return;
            }
            mm = Ifun.Left(mm, mm.Length - 1);
            clientservice_AfterServiceBill cab = new clientservice_AfterServiceBill();

            Wxinfo = cab.Select(" and code in (" + mm + ")");
        }
Beispiel #2
0
        private void Ad_Click(object sender, EventArgs e)
        {
            if (Uiname == "" || Uiname is null || Tiname == "" || Tiname is null)
            {
                return;
            }

            string Miname = string.Empty;

            if (Mlist.Count <= 0)
            {
                Miname = "";
            }
            else
            {
                for (int i = 0; i < Mlist.Count; i++)
                {
                    Miname += Mlist[i] + ",";
                }
                Miname = Ifun.Left(Miname, Miname.Length - 1);
            }

            m_menu_list        mml = new m_menu_list();
            List <m_menu_list> ms  = mml.Select("and tname='" + Tiname + "' and uname='" + Uiname + "'");

            mml.Reset_m_menu_list();
            mml.UNAME = Uiname;
            mml.TNAME = Tiname;
            mml.MNAME = Miname;
            if (ms.Count > 0)
            {
                mml.Updata("and tname='" + Tiname + "' and uname='" + Uiname + "'");
            }
            else
            {
                mml.Insert();
            }

            Msg err = new Msg(3, "保存成功!");
        }
Beispiel #3
0
 private void MakeSay_Click(object sender, EventArgs e)
 {
     string inp   = (sender as Label).Text;
     Msg    Minfo = new Msg(0, Ifun.Right(inp, inp.Length - 7), Ifun.Right(Ifun.Left(inp, 6), 4), 1);
 }
Beispiel #4
0
 private void MsgShowIinfo_Click(object sender, EventArgs e)
 {
     // ----\n\r 是做为一个字节
     string inp   = (sender as Label).Text;
     Msg    Minfo = new Msg(0, Ifun.Right(inp, inp.Length - 7), Ifun.Right(Ifun.Left(inp, 6), 4), 1);
 }