- 博客(70)
- 资源 (3)
- 收藏
- 关注

原创 微信小程序商城源码C# 、Asp.Net, Mvc +sqlserver 2012+后台 微信小程序源码C#
代码是用UniApp +Asp.Net, Mvc +sqlserver 2012 架构编写的,已上线,可任意修改的。功能包括 首页,分类,购物车,订单相关,会员中心,会员优惠券,新人优惠券,收费优惠券,免费优惠券,用户中心,我的钱包,充值,积分,等等实用功能。...
2020-06-12 10:34:39
4394
6
原创 C# asp.net 缓存帮助类相关
public class CacheHelper { private static List<string> _allCacheKey = new List<string>(); private static ObjectCache _cache = MemoryCache.Default; /// <summary> /// 添加缓存 /// </summary>...
2020-05-22 18:22:33
212
原创 Graphics类常用方法
名称 说明 DrawArc 画弧。 DrawBezier 画立体的贝尔塞曲线。 DrawBeziers 画连续立体的贝尔塞曲线。 DrawClosedCurve 画闭合曲线。 DrawCurve 画曲线。 DrawEllipse 画椭圆。 DrawImage 画图像。 DrawLine 画线。 DrawPath 通过路径画线和曲线。 DrawPie 画
2014-03-27 10:14:07
1020
原创 NPOI 操作Excel
#region 1.最初模型数据加载(未优化代码) private void Read2007() { dataSet.Tables.Clear(); tableCellTypeList.Clear(); sheetNameList.Clear();
2014-03-26 17:37:06
1159
原创 .net页面生命周期
.net页面生命周期(1)Page_Init();---初始化对象这一过程主要是初始化包括页面本身的所有控件,每次的页面载入就会执行一次初试过程,而在这里面访问到的也是控件的初始值。还有就是可以通过OnInit()来重载初试化事件(2) LoadViewState---导入Viewstate数据在初试化事件后,在loadvireState事件中所有控件将获得他们的第一个属性View
2014-03-26 17:26:55
622
原创 EF的增删改查
EF的增删改查: using System;using System.Collections.Generic;using System.Data.Entity.Infrastructure;using System.Linq;using System.Linq.Expressions;using System.Text;using System.Threading.
2014-03-26 17:25:03
2979
原创 .NET SqlHelper类
using System;using System.Collections.Generic;using System.Data;using System.Data.SqlClient;using System.Linq;using System.Web; namespace WebApplication{ public class SqlHelper
2014-03-26 17:23:03
1632
1
原创 存储过程中的事务
存储过程中的事务:--传入一个金额,自动的从转到,写成存储过程 CREATE PROCusp_ZZ@mon INT=0ASBEGINDECLARE @sumerr INT =0---默认值必须加BEGIN TRANSACTION UPDATE dbo.bankSET balance =balance-@monWHERE cId='00
2014-03-26 17:20:08
518
原创 SqlServer分页存储过程
高效分页语句:1,row_number()select * from ( select*,ROW_NUMBER()over(orderby rpId)as row from Ou_RolePermission)ast where t.row >0and t.row102,--top 分页查询select top 10 * from Ou_R
2014-03-26 17:18:20
519
原创 OC-todolist项目
//// Todo.h// todolist//// Created byzz// Copyright (c) 2012年 __MyCompanyName__. All rights reserved.//#import@interface Todo :NSObject{ NSString* subjec
2012-05-12 20:48:07
1233
原创 OC-NewsReader项目
//// News.h// NewsReader//// // Copyright (c) 2012年 __MyCompanyName__. All rights reserved.//#import@interface News :NSObject NSCoding,NSCopying>{NSString* subj
2012-05-12 20:45:03
1517
原创 iphone---在表格中实现页面切换和修改
//// EditViewController.h// Iphome_day01//// zz// Copyright (c) 2012年 __MyCompanyName__. All rights reserved.//#import#import"movie.h"@classViewController;@interf
2012-05-12 20:39:03
1655
原创 iphone-实现页面的切换和修改
//// movie.h// day04//// // Copyright (c) 2012年 __MyCompanyName__. All rights reserved.//#import@interface movie :NSObject NSCopying,NSCoding>{ NSString*
2012-05-12 20:20:53
1061
原创 iphone---MyfistLabel
//// hello.h// MyFirstLabel//// // Copyright (c) 2012年 __MyCompanyName__. All rights reserved.//#import@interface hello :UIViewController{ UILabel* _label;
2012-05-12 20:05:12
504
原创 C++第二个项目实现
/*************************************************** 文件名称:Person.h 作 者:zz 备 注:人的头文件 创建时间:2012-4-1 修改历史:2012-4-5 版权声明:优快云 ***************************************
2012-04-12 08:30:40
1386
原创 学C++第一个项目实现
aaaa项目的实现//Date.h文件#ifndef _Date_H#define _Date_Hclass Date{ public: Date(); Date(int year,int month,int day); void print()const;private: int _year; int _month;
2012-03-21 20:10:51
806
原创 C++ 计算一个线段长度,两个端点的坐标值分别为(100,200)(200,300)。要求:定义一个CLine类,属性是CPoint对象。(初始化参数列表)
// test_day11.cpp : Defines the entry point for the console application.//#include "stdafx.h"#include #include class CPoint{public : CPoint(double a,double b,double c,double d):x(a-c
2012-03-16 20:11:52
7090
原创 C++构造函数
class Thing{public:Thing( int a=10,int b=20, int c = 30)//Thing( int a, int b, int c) { x=a; y=b; z=c; } 比较两个构造函数头,调用时的区别是什么? 在有参构造函数调用时,如果参数有默认值,则是如下调用的话,Thingt;则系统会自动的调用这个带有三
2012-03-16 20:08:56
610
原创 C总结2
C_总结21, Const的用法 Const修饰变量,标志着这个变量是不可修改的。 如:int const i= 2; 或者const int i=2; Const 修饰指针变量。(有两种形式) 如:int* const p1=&i; 和 const int* p2= &i; 下面是对两种形式的分析:const int x=2;const i
2012-03-16 19:15:53
660
原创 C总结1
C-总结 1,C的开发环境是用Visual C++ 6.0 SP6简体中文版。2. C的标准输入是:如:inta=0; %的意思是转义符。scanf(%d\n,&a); &的意思是取地址。%d标识是输入的是int类型。输出是:printf(%d,a);//输出a的值。%d标识输出的是int类型的值。3.const 关键字是限定它定义的变量是不可变的。4.C的三
2012-03-16 19:13:47
444
原创 android第二十天——手势识别
创建手势库及应用 /* * Copyright (C) 2009 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with t
2012-01-03 21:01:58
1019
原创 安卓第十天——利用handler实现progress组件
main.xmlhttp://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical" > android:la
2011-12-22 22:52:12
530
原创 安卓第十天——Progress组件的简单实现
Main.xmlhttp://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical" > andro
2011-12-22 22:48:52
508
原创 安卓第十天——ListView的简单实现
main.xmlhttp://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical" >
2011-12-22 22:44:49
591
原创 实现radiobutton和checkbutton值的传递
main.xmlhttp://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical" > android:layo
2011-12-18 22:48:53
2738
原创 实现两个数的相加
main.xmlhttp://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical" > android:
2011-12-18 18:59:15
1341
原创 安卓第八天——四个UI常用组件
安卓第八天UI组建以下是四个组建的具体实现RadioGroup RadioButton android:id="@+id/sexRg" android:layout_width="fill_parent" android:layout_height="wrap_content" android:che
2011-12-14 22:06:41
1544
原创 安卓第七天——TextView和EditText
安卓第七天TextView和EditText TextView: android:autoLink属性的应用 android:layout_width="fill_parent" android:layout_height="wrap_content" android:id="@+id/autotx" andr
2011-12-13 21:59:43
1551
原创 安卓第七天————注册界面的实现
table_layout.xml http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:stretchColumns="1" >
2011-12-13 21:46:58
5227
原创 安卓第六天————通讯录的简单实现源码
Main.xmlhttp://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical" > android:la
2011-12-12 22:02:35
1981
原创 安卓第六天——菜单介绍
安卓第六天菜单介绍android提供了三种菜单类型,分别为options menu,context menu,sub menu。options menu就是通过按home键来显示.context menu需要在view上按上2s后显示。这两种menu都有可以加入子菜单,子菜单不能种不能嵌套子菜单。 1、 利用xml定义选项菜单 a)
2011-12-12 21:48:05
469
原创 安卓第五天————activity生命周期详解
Activity生命周期的详解 1.运行activity时,会调用以下方法。 从调用 oncreate() ——>onstart()——>onresume(). 2.点击返回键时,会调用以下方法 从调用 onpause() ——>onstop()——>onDestroy(). -----------------------------------------
2011-12-10 16:43:48
580
原创 安卓第五天——Activity生命周期
安卓第五天Activity生命周期 1.Activity是应用程序的入口,负责创建窗口、用户交互等。 2.一个程序可能会有多个Activity继承自android.app.Activity如果想实现activity类,必须覆盖其方法,OverrideonCreate()setContentView()显示视图findViewById()实例化组件Andr
2011-12-09 17:33:30
601
原创 安卓第四天————利用两个activity实现切换效果
1.main.xmlhttp://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical" > android:
2011-12-08 22:16:53
1163
原创 安卓第四天————Activity初步
利用键盘或触摸实现public classAsdfActivity extends Activity { /** Called when the activity is firstcreated. */ private final static String TAG="myTag"; boolean flag=true; publicvoi
2011-12-08 22:12:02
485
原创 安卓第三天————布局的实例代码
1.线性布局 http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical" > android:l
2011-12-07 21:48:24
639
原创 安卓第三天————UI和布局介绍
安卓第三天UI 概述和布局 UI是user interface 的简称。(用户界面) 一个android应用的用户界面是由view和viewgroup对象构建的。他们有很多种类,并且都是view类的子类,view类是android系统平台上用户界面表示的基本单元。View类的一些子类被统称为widgets(工具),他们提供了诸如文本输入框和按钮之类的UI对象的完整实现。View
2011-12-07 20:54:46
854
原创 安卓第二天————模拟一个打电话程序
模拟一个打电话程序 1.在设计中,分析会发现String字符串有两个,一个text文本框,一个button按钮。首先在res/values/strings.xml中添加两个字符串.代码如下: "1.0"encoding="utf-8"?> "hello">Hello World, PhoneActivity! "app_name">Phone
2011-12-06 23:35:33
585
原创 安卓第二天————安卓程序的各个包下的文件的功能
昨天介绍了环境的搭建,以及如何在模拟器上运行,今天学习了各个组件的作用和意义.下面这张图片是第一个安卓项目展开之后的各个java类以及包文件,资源文件,等. Res/目录下有三个dawable文件夹,他们分别是存放分辨率高中低的图标的。不过,如果不想准备太多图片,那么也可以只准备一张图标将其放入三个目录的任何一个中去。 Strings.xm
2011-12-06 23:33:08
552
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人