自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(25)
  • 收藏
  • 关注

原创 新增和修改存储过程语句

CREATE PROCEDURE [dbo].[RivalPriceTable_Get] 新增ALTER PROCEDURE [dbo].[RivalPriceTable_Get] 修改

2016-12-02 16:59:07 3742

原创 表里无此字段,但是存储过程得新增一条字段,DepartmentName

USE [DrugSaleSystem]GO/****** Object: StoredProcedure [dbo].[ShiftStatistics_Get] Script Date: 11/23/2016 16:38:58 ******/SET ANSI_NULLS ONGOSET QUOTED_IDENTIFIER ONGO---------------------

2016-11-23 17:20:13 953

原创 DAL层,新增一条分页查询语句 DepartmentName

/// /// 获取一个分页列表 /// /// 班次号 /// 门店编号 /// 是否同步 /// 班次开始日期 /// 班次结束日期 /// 每页记录数 /// 当前页码 /// public static Pag

2016-11-23 17:05:34 1023

原创 spell拼音码的写法及语句

namespace DrugSaleSystem.Components{ using System; using System.Text; public sealed class Spell { #region 字段和属性 //拼音代码表 readonly static string[] _spellMusicCo

2016-09-02 13:40:35 2337

原创 绑定数据 获取值,修改,新增 。记录日志及 获取拼音码及键 回车换行

using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;using DrugSaleSy

2016-08-31 16:55:16 439

原创 界面对应字段,绑定数据到gridview 显示 及删除功能 窗体事件 分页及键

using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;using DevCompone

2016-08-31 16:50:49 827

原创 增加 修改,装载状态(父品类)

using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;using DrugSaleSy

2016-08-30 09:50:18 482

原创 绑定数据显示到 GridView

public void DrugCategoryInit() { dgvDrugCategoryList.Rows.Clear(); int DrugCategoryCode=0; //初始化数据 if (txbDrugCategory

2016-08-29 11:51:41 537

原创 Socket通信原理

using System;using System.Collections.Generic;using System.Linq;using System.Text;//添加Socket类using System.Net;using System.Net.Sockets;namespace SockeConsoleServer{    class Progra

2016-02-18 11:32:38 440

原创 Windows服务代码练习

using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Diagnostics;using System.Linq;using System.ServiceProcess;using System.Text;usi

2016-02-17 09:55:53 432

原创 表达式与运算符

表  达   式using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace BiaoDaShi{    class Program    {        static void Main(string[] args)

2015-12-09 22:14:10 443

原创 变量,常量,引用类型,值类型,枚举类型, 值类型和引用类型的简单区别,类型转换,装箱与拆箱

变量using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace BianLiang{    class Program    {        static void Main(string[] args)        {

2015-12-09 22:11:48 1159

原创 AbstractSqlHelper

using System;using System.Collections.Generic;using System.Data.SqlClient;using System.Linq;using System.Text;using System.Data;using System.Data.Common;using System.Configuration;

2015-11-05 11:52:45 682

原创 XmlHelper

using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Xml;namespace TSMS.Common{   public  class XmlHelper    {       #region 对节点操作

2015-11-05 11:51:30 410

原创 三层架构

Model层using System;namespace TSMS.Model{ ///  /// 描述员工的在职状态 ///  [Serializable] public partial class tb_potential {  public tb_potential()  {}  #region Model  private int _

2015-11-05 11:47:39 550

原创 SqlHelper

using System;using System.Collections;using System.Collections.Generic;using System.Data;using System.Data.SqlClient;using System.IO;using System.Reflection;using System.Runtime.Serializ

2015-11-05 11:44:28 410

原创 三层及winform前台页面 XmlHelper.cs Sqlhelper.cs AbstractSqlHelper.cs Com.cs 分页控件的后台代码

using System;namespace TSMS.Model{ ///  /// 描述员工的在职状态 ///  [Serializable] public partial class tb_potential {  public tb_potential()  {}  #region Model  private int _po

2015-09-13 09:50:55 1017

原创 服务器控件的处理方式 页面的生命周期

服务器控件事件处理方式1)通过表单提交,也能找到后台相应的事件处理。2)通过回调函数(JavaScript中的回调函数),   也能找到相应的后台事件处理。(ASP.NET回发机制)   需要设置控件的属性:this.Button1.UseSubmitBehavior = false;3) 如何找母版页的控件。       //设置控件是否可见(隐藏)  pro

2015-09-13 08:44:00 493

原创 前台后台验证 后台像前台编写JavaScript脚本 在控件中添加属性值 母版页以及占位符 内容页

1.前台JavaScript验证。2.后台的服务器验证。3.在后台程序中向前台编写JavaScript脚本。 1)Response.Write("alert('注册成功');");    问题:在网页内容输出前就显示了,所以就有可能导致样式没有导入。 2)if(string.IsNullOrEmpty(strUserName))    { this.Pa

2015-09-12 21:35:29 915

原创 表单提交数据的方式 怎么在服务器获取 服务器控件 html服务器控件 提交服务器之前的验证 前台网页编写c#代码

1.页面现在向服务器提交数据。  通过表单的发送数据。注意,每个页面均要求有表单。  创建一个aspx页面,那么会有一个默认的表单。  比如:   表单提交数据的两种方式:  1)post方式    优点: 由数据包的形式提交给服务器,对于客户端是不可见的。     安全性比较高,传输大小是没有限制的。    缺点:传输速度相对于get方式要慢一点。

2015-09-12 17:40:06 1705

原创 http的内置对象 Session Application Global.aspx文件

http请求和响应是无状态的。客户端向服务器发出请求,对于服务器来讲,代表客户端的请求对象是HttpRequest.. //HttpRequest对象表示的是客户端对于服务器的请求,那么把客户端的请求封装在HttpRequest对象中。 HttpRequest request = this.Request; //HttpResponse表示的是服务器对于客户端的响应

2015-09-12 14:58:24 855

原创 存储过程 视图 触发器 分页

存储过程存储过程(Stored   (Procedure  这是语法的关键字)) 是一组为了完成特定功能的SQL, 语句集,经编译后存储在数据库,     用户通过制定存储过程的名字并给出参数(如果该存储过程带有参数)来执行它。     存储过程的分类:1)系统提供的存储过程,一般它是以sp开头的2)自定义的存储过程,一般与我们的业务相关的。  自定义的存储过程有可以分

2015-08-18 09:29:12 428

原创 左,右,内连接 统计记录数 子查询 聚合函数 查询产品分类

--1)内连接,必须保证的是内连接的数据一定相等的才会查询出来。   select 用户表.用户ID, 用户表.用户名称, 角色表.角色名称   from 用户表 inner join 角色表   on 用户表.角色ID = 角色表.角色ID--2)左连接-- 作用:保证左边表的数据全部出现,而关联的这个表的数据满足相等的条件下才会显示。-- left join

2015-08-15 14:41:53 2338

原创 sql server 创建table表 及添加各种约束 查看约束 删除约束 新增表的字段 规则及规则使用方法及应用到表中 时间函数的类型

use Test1gocreate table tb_person(id int identity(1,1) primary key not null, --要把该列设置为主键列就用 primary key --name varchar(20) not null,sex char(2) not null,cardid char(25) not null, -- 身份证编

2015-08-13 16:46:05 2014

原创 SQL SERVER简单的增,删,查,改 语句 多表关联查询 (去掉关键列查询)

insert into tb_UserInfo values('赵六',3,13512458679);--增加语句--update tb_UserInfo set name='刘德华'where id=3;--修改语句--delete from tb_UserInfo where id=3;--删除列 id=3 的那条数据delete

2015-08-12 18:00:49 2814

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除