Exemplo n.º 1
0
        private void Printinfo()
        {
            Label MsgShowIinfo = Skincss.AddLable(Lis, "\n\r维修报告:\n\r" + Dg.SelectedRows[0].Cells["过程信息"].Value.ToString(), "top", "0/56", "#050050050", 10, "", 3);

            MsgShowIinfo.Click += MsgShowIinfo_Click;


            //打印快递信息
            string kdinfo = Dg.SelectedRows[0].Cells["快递信息"].Value.ToString();
            string upinfo = string.Empty;

            if (Ifun.IndexOf(kdinfo, "@"))
            {
                string[] Fn = kdinfo.Split('@');

                for (int i = 0; i < Fn.Length; i++)
                {
                    upinfo += Fn[i] + "\n\r";
                }
            }
            else
            {
                if (upinfo == "")
                {
                    upinfo = "无信息记录";
                }
                else
                {
                    upinfo = kdinfo;
                }
            }
            Label CgMsgShowIinfo = Skincss.AddLable(Lis, "\n\r快递信息:\n\r" + upinfo, "top", "0/56", "#050050050", 10, "", 3);

            CgMsgShowIinfo.Click += MsgShowIinfo_Click;
        }
Exemplo n.º 2
0
        private void SetCheckBox(List <string> Dalist)
        {
            Control Pc = BFrom._MainPanel.Controls[0].Controls[0];

            foreach (CheckBox hb in Pc.Controls)
            {
                hb.Checked = false;
            }
            if (Dalist.Count > 0 && Dalist[0].Trim() != "")
            {
                string str = Dalist[0];

                //判断是否是数组
                if (Ifun.IndexOf(str, ","))
                {
                    string[] ctr = str.Split(',');
                    for (int i = 0; i < ctr.Count(); i++)
                    {
                        (Pc.Controls[ctr[i].Trim()] as CheckBox).Checked = true;
                    }
                }
                else
                {
                    (Pc.Controls[str.Trim()] as CheckBox).Checked = true;
                }
            }
        }