예제 #1
0
파일: nvo_dw_fun.cs 프로젝트: SHLXMis/SHLX
        public str_sys_dw f_constr_load(string as_username, string as_winname, ref DataWindow adw_dw, ref str_sys_dw astr_dws_g, ref str_sys_dw astr_dws_i)
        {
            //待实现
            str_sys_dw ret = new str_sys_dw();

            return(ret);
        }
예제 #2
0
파일: nvo_dw_fun.cs 프로젝트: SHLXMis/SHLX
        public void f_constr_win0(string as_username, string as_winname, ref str_sys_dw a5dww, ref str_win_dw9 a5wd)
        {
            string ls_tab_h = "";

            string sql = "select top 1 colname,dw_2_3	.header_color,header_fontcolor,header_fontsize,header_fontface,header_height,detail_fontsize,detail_fontface,detail_height,detail_color1,detail_color2,detail_color3,detail_fontcolor1,detail_fontcolor2,detail_fontcolor3,detail_input_bcoloro,detail_input_bcolorm,dw_color,getdate() "+
                         "  from mis_dw_argument WITH (NOLOCK) " +
                         "  where user_name1 = :as_username and window1 = :as_winname and dataobject = '' ";

            global.gu_pub1.il_getdate = DateTime.Now.Millisecond;
            if (a5dww.detail_color1 != "")
            {
                f_constr_color0_get(ref a5dww);
            }
            if (a5wd.l_tab3 >= 1 && ls_tab_h != "")
            {
                global.gu_pub1.f_s_listtoarray(ls_tab_h, ",", ref a5wd.d_tab_h);
                //string[] ss = ls_tab_h.Split(','); ;
                //a5wd.d_tab_h = ss.Select(x => Convert.ToDouble(x)).ToArray();
            }
            if (a5wd.d_tab_h.Length < 48 && a5wd.l_tab3 >= 0)
            {
                a5wd.d_tab_h = new double[] { 0,
                                              0.7, 0.7, 0.7, 0.7, 0.7, 0.7, 0.7, 0.7,
                                              0.7, 0.7, 0.7, 0.7, 0.7, 0.7, 0.7, 0.7,
                                              0, 0, 0, 0, 0, 0, 0, 0,
                                              0, 0, 0, 0, 0, 0, 0, 0,
                                              0, 0, 0, 0, 0, 0, 0, 0,
                                              0, 0, 0, 0, 0, 0, 0, 0 }
            }
            ;
        }
예제 #3
0
파일: nvo_dw_fun.cs 프로젝트: SHLXMis/SHLX
        public void f_constr_color0_get(ref str_sys_dw astr_dws)
        {
            switch (astr_dws.dw_2_3)
            {
            case "2":
                astr_dws.detail_color0     = "if(mod(getrow(),2)=1,' + astr_dws.detail_color1 + ',' + astr_dws.detail_color2 + ')";
                astr_dws.detail_fontcolor0 = "if(mod(getrow(),2)=1,' + astr_dws.detail_fontcolor1 + ',' + astr_dws.detail_fontcolor2 + ')";
                break;

            case "3":
                astr_dws.detail_color0     = "case(mod(getrow(),3) when 1 then ' + astr_dws.detail_color1 + ' when 2 then ' + astr_dws.detail_color2 + ' else ' + astr_dws.detail_color3 + ')";
                astr_dws.detail_fontcolor0 = "case(mod(getrow(),3) when 1 then ' + astr_dws.detail_fontcolor1 + ' when 2 then ' + astr_dws.detail_fontcolor2 + ' else ' + astr_dws.detail_fontcolor3 + ')";
                break;
            }
        }