Exemplo n.º 1
0
        public static Cache_data_cjjl ini_yb(int year, int month)
        {
            if (uniqueInstance == null)
            {
                uniqueInstance = new Cache_data_cjjl();
                by             = ZB_Data_CJBA_DataProvider.GET_YB(Base_date.by_First, Base_date.by_Last);
                sy             = ZB_Data_CJBA_DataProvider.GET_YB(Base_date.sy_First, Base_date.sy_Last);
            }

            return(uniqueInstance);
        }
Exemplo n.º 2
0
 public static Cache_data_cjjl ini_zb()
 {
     if (uniqueInstance == null)
     {
         uniqueInstance = new Cache_data_cjjl();
         jbz            = ZB_Data_CJBA_DataProvider.GET_JBZ(Base_date.bn, Base_date.bz);
         var bztemp = jbz.Select("zc=" + Base_date.bz);
         bz = bztemp.Count() != 0 ? bztemp.CopyToDataTable():new DataTable();
         var sztemp = jbz.Select("zc=" + (Base_date.bz - 1));
         sz = sztemp.Count() != 0 ? sztemp.CopyToDataTable() : new DataTable();
         var ssztemp = jbz.Select("zc=" + (Base_date.bz - 2));
         ssz = ssztemp.Count() != 0 ? ssztemp.CopyToDataTable() : new DataTable();
         var sssztemp = jbz.Select("zc=" + (Base_date.bz - 3));
         sssz        = sssztemp.Count() != 0 ? sssztemp.CopyToDataTable() : new DataTable();
         tz          = ZB_Data_CJBA_DataProvider.GET_ZB(Base_date.tz_first, Base_date.tz_Last);
         nowdatetask = new dateTask(null, Base_date.bn, null, Base_date.bz);
     }
     else
     {
         if (nowdatetask != null && (nowdatetask.nf != Base_date.bn || nowdatetask.zc != Base_date.bz))
         {
             jbz = ZB_Data_CJBA_DataProvider.GET_JBZ(Base_date.bn, Base_date.bz);
             var bztemp = jbz.Select("zc=" + Base_date.bz);
             bz = bztemp.Count() != 0 ? bztemp.CopyToDataTable() : new DataTable();
             var sztemp = jbz.Select("zc=" + (Base_date.bz - 1));
             sz = sztemp.Count() != 0 ? sztemp.CopyToDataTable() : new DataTable();
             var ssztemp = jbz.Select("zc=" + (Base_date.bz - 2));
             ssz = ssztemp.Count() != 0 ? ssztemp.CopyToDataTable() : new DataTable();
             var sssztemp = jbz.Select("zc=" + (Base_date.bz - 3));
             sssz        = sssztemp.Count() != 0 ? sssztemp.CopyToDataTable() : new DataTable();
             tz          = ZB_Data_CJBA_DataProvider.GET_ZB(Base_date.tz_first, Base_date.tz_Last);
             nowdatetask = new dateTask(null, Base_date.bn, null, Base_date.bz);
         }
     }
     return(uniqueInstance);
 }
        public plus_jp_jinkeshichangzhoubao()
        {
            DateTime start = new DateTime(Base_date.bn, 1, 1);

            bn = ZB_Data_CJBA_DataProvider.GET_ZB(start, Base_date.bz_Last);
        }
 public plus_jp_beidaziyuan()
 {
     Base_date.init_yb(Base_date.bn, Base_date.GET_Y_FROM_Z(Base_date.bn, Base_date.bz));
     byba = ZB_Data_CJBA_DataProvider.GET_ZB(Base_date.by_First, Base_date.bz_Last);
 }