public MouthManage()
 {
     // Aspose_Crack.SlideCrack();
     //MessageBox.Show("之前"+Cache_Result_yb.td_by_zyd.ToString());
     Cache_data_cjjl.ini_yb(2018, 4);
     Cache_data_xzys.ini_yb();
     Cache_data_tdjyjl.ini_yb();
     Cache_Result_yb.ini();
 }
Beispiel #2
0
 public static Cache_data_xzys ini_yb()
 {
     if (uniqueInstance == null)
     {
         uniqueInstance = new Cache_data_xzys();
         by             = ZB_Data_XZYS_DataProvider.GET_BY(Base_date.by_First, Base_date.by_Last);
         sy             = ZB_Data_XZYS_DataProvider.GET_BY(Base_date.sy_First, Base_date.sy_Last);
         ty             = ZB_Data_XZYS_DataProvider.GET_BY(Base_date.ty_first, Base_date.ty_Last);
     }
     return(uniqueInstance);
 }
Beispiel #3
0
        public static Cache_data_xzys ini_zb()
        {
            if (uniqueInstance == null)
            {
                uniqueInstance = new Cache_data_xzys();
                jbz            = ZB_Data_XZYS_DataProvider.GET_JBZ(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 ? sztemp.CopyToDataTable() : new DataTable();
                var sssztemp = jbz.Select("zc=" + (Base_date.bz - 3));
                sssz = sssztemp.Count() != 0 ? sztemp.CopyToDataTable() : new DataTable();

                tz = ZB_Data_XZYS_DataProvider.GET_ZB(Base_date.tz_first, Base_date.tz_Last);
            }
            else
            {
                if (nowdatetask != null && (nowdatetask.nf != Base_date.bn || nowdatetask.zc != Base_date.bz))
                {
                    uniqueInstance = new Cache_data_xzys();
                    jbz            = ZB_Data_XZYS_DataProvider.GET_JBZ(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 ? sztemp.CopyToDataTable() : new DataTable();
                    var sssztemp = jbz.Select("zc=" + (Base_date.bz - 3));
                    sssz = sssztemp.Count() != 0 ? sztemp.CopyToDataTable() : new DataTable();

                    tz          = ZB_Data_XZYS_DataProvider.GET_ZB(Base_date.tz_first, Base_date.tz_Last);
                    nowdatetask = new dateTask(null, Base_date.bn, null, Base_date.bz);
                }
            }
            return(uniqueInstance);
        }