随笔分类 - c#
descript c#
摘要:系统默认的生产用料清单下推生成调拨单功能,是根据调拨选单数量来的,有库存和没有库存的都混在一起,导致业务人员审核调拨单的时候需要删除没有库存的分录行,严重影响工作效率。 现通过二开程序,根据生产用料清单分录行物料库存数据进行处理,调拨单审核自动根据未完成调拨的生产用料清单生成调拨单 转换插件 1 p
阅读全文
摘要:记录一下过程打开vs 新建一个解决方案再新建一个windows服务项目,再新建一个数据库处理类库直接用的SqlHelper,再添加一个应用程序配置文件app.config项目结构如下:windows服务代码1usingSystem;2usingSystem.Collections.Generic;3usingSystem.ComponentModel;4usingSystem.Data;5usingSystem.Diagnostics;6usingSystem.Linq;7usingSystem.ServiceProcess;8usingSystem.Text;9usingSystem.Dia
阅读全文
摘要:前台代码<%@ Page Language="C#" AutoEventWireup="true" CodeFile="DynamicCol.aspx.cs" Inherits="Content_DynamicCol" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"
阅读全文
摘要:jquery.autocomplete.js$.ajax({ // try to leverage ajaxQueue plugin to abort previous requests mode: "abort", // limit abortion to this input port: "autocomplete" + input.name, dataType: options.dataType, url: options.url, data: $.extend({ q: encodeURI(lastWord(term)), limit: opti
阅读全文
摘要:在c# / ASP.net中我们可以通过使用DataTime这个类来获取当前的时间。通过调用类中的各种方法我们可以获取不同的时间:如:日期(2008-09-04)、时间(12:12:12)、日期+时间(2008-09-04 12:11:10)等。//获取日期+时间DateTime.Now.ToString(); // 2008-9-4 20:02:10DateTime.Now.ToLocalTime().ToString(); // 2008-9-4 20:12:12//获取日期DateTime.Now.ToLongDateString().ToString(); // 2008年9月4日Da
阅读全文
摘要:首先是生成xml文件,生成xml文件前去网上DOWNload一个最新中国省市行政数据库public void createxml(string filename) { XmlTextWriter mywrite = new XmlTextWriter(filename, Encoding.UTF8); try { mywrite.Formatting = Formatting.Indented; ...
阅读全文
摘要:using System;using System.Collections;using System.Collections.Generic; using System.Text; using System.Web.Script.Serialization;namespace json{ /**//// <summary> /// JSONHelper 的摘要说明 /// </s...
阅读全文