示例#1
0
        private string shiyitu_add()
        {
            sql_sel s1   = new sql_sel();
            string  sytx = "没有";

            string[] r1 = { "R示意图", "R所属台账编号" };
            try
            {
                string[] v = { ID.Text };
                if (s1.insert_img("B示意图", r1, shiyitu, v) == 1)
                {
                    sytx = "有";
                }
            }
            catch
            {
                sytx = "没有";
            }
            return(sytx);
        }
示例#2
0
        private int img_add()
        {
            sql_sel s1  = new sql_sel();
            int     xxx = 0;

            string[] r = { "R图片", "R图片名称", "R图片类型", "R所属台账序号" };
            try
            {
                for (int j = 0; j < imglist.Count; j++)
                {
                    string[] v = { name[j], leixin[j], ID.Text };
                    xxx = s1.insert_img("B图片", r, (byte[])imglist[j], v) + xxx;
                }
            }
            catch
            {
                xxx = 0;
            }
            return(xxx);
        }