public void init() { SalesOrderID.Text = "BY" + StrHelper.GetRamCode(); CreateDate.Text = DateTime.Now.ToString("yyyy-MM-dd"); if (getTypeID() != 0) { CheckUserType.Value = "1"; } }
/// <summary> /// /// </summary> private void kuaiShenhe(string SalesOrderID) { VSalesOrder vs = Leyp.SQLServerDAL.Sales.Factory.getSalesOrderDAL().getByID(SalesOrderID); if (vs == null) { return; } SalesOut s = new SalesOut(); s.UserName = getUserName(); s.Consignee = "未知"; s.CreateDate = DateTime.Now.ToString("yyyy-MM-dd"); s.SalesOrderID = vs.SalesOrderID; s.SalesOutID = "SO" + StrHelper.GetRamCode(); s.Description = "无"; s.DeliveryID = Leyp.SQLServerDAL.Sales.Factory.getSalesPlatformDAL().getList()[0].PlatformID; }
public static void AlertForSave(string message) { string RamCode = StrHelper.GetRamCode(); string Url = HttpContext.Current.Request.Url.ToString(); if (Url.IndexOf('?') > 0) { Url = string.Format("{0}&RamCode={1}", Url, RamCode); } else { Url = string.Format("{0}?RamCode={1}", Url, RamCode); } string js = "<script language=javascript>alert('{0}');window.location.replace('{1}')</script>"; HttpContext.Current.Response.Write(string.Format(js, message, Url)); }
public void init() { object action = Request.Form["action"]; if (action == null) { InventoryID.Text = StrHelper.GetRamCode(); CreateDate.Text = DateTime.Now.ToString("yyyy-MM-dd"); } else { string str0 = Request.Form["InventoryID"].ToString(); string str1 = Request.Form["CreateDate"].ToString(); string str2 = Request.Form["StoreHouseID"].ToString(); string str3 = Request.Form["HouseDetailID"].ToString(); string str4 = Request.Form["ProductsID"].ToString(); string str5 = Request.Form["RealityNum"].ToString(); string str6 = Request.Form["BillNum"].ToString(); string str7 = Request.Form["AdjustNum"].ToString(); string str8 = Request.Form["Operator"].ToString(); string str9 = Request.Form["TradeDate"].ToString(); string str10 = Request.Form["Description"].ToString(); Inventory iv = new Inventory(); iv.InventoryID = str0; iv.CreateDate = str1; iv.StoreHouseID = int.Parse(str2); iv.HouseDetailID = int.Parse(str3); iv.ProductsID = int.Parse(str4); iv.RealityNum = int.Parse(str5); iv.BillNum = int.Parse(str6); iv.AdjustNum = int.Parse(str7); iv.Operator = str8; iv.TradeDate = str9; iv.Description = str10; iv.UserName = getUserName(); Leyp.SQLServerDAL.Stock.Factory.getInventoryDAL().insertNewEntity(iv); Response.Write("0"); Response.End(); } }
private void createExcel(List <VSalesOrder> list) { StringBuilder sb = new StringBuilder(); sb.Append("<table width=350 border=0><tr><td>订单号</td><td>日期</td><td>交货方式</td><td>结算方式</td><td>顾客名称</td><td>合计金额</td> <td>状态</td></tr>"); int len = list.Count; for (int i = 0; i < len; i++) { VSalesOrder vs = list[i]; sb.Append(" <tr>"); sb.Append("<td>" + vs.SalesOrderID + "</td>"); sb.Append("<td>" + vs.CreateDate + "</td>"); sb.Append("<td>" + vs.DeliveryType + "</td>"); sb.Append("<td>" + vs.ClosingType + "</td>"); sb.Append("<td>" + vs.CustomerName + "</td>"); sb.Append("<td>" + vs.SalesIncome.ToString() + "</td>"); sb.Append("<td>" + changString(vs.State.ToString()) + "</td>"); sb.Append(" </tr>"); } sb.Append("</table>"); string sr = StrHelper.GetRamCode(); string path = System.Web.HttpContext.Current.Server.MapPath("../UploadFiles/" + sr + ".xls"); FileStream NewText = File.Create(path); NewText.Close(); FileStream TextFile = File.Open(path, FileMode.Append); TextFile.Write((System.Text.Encoding.Default.GetBytes(sb.ToString().ToCharArray())), 0, System.Text.Encoding.Default.GetBytes(sb.ToString().ToCharArray()).Length); TextFile.Close(); Response.Redirect("../UploadFiles/" + sr + ".xls"); }
protected void init() { AppendID.Text = "BY" + StrHelper.GetRamCode(); CreateDate.Text = DateTime.Now.ToString("yyyy-MM-dd"); }
public void init() { SalesOutID.Text = "SO" + StrHelper.GetRamCode(); CreateDate.Text = DateTime.Now.ToString("yyyy-MM-dd"); }
protected void init() { ReceiptOrderID.Text = "CR" + StrHelper.GetRamCode(); ReceiptOrderDate.Text = DateTime.Now.ToString("yyyy-MM-dd"); }
/// <summary> /// 生成ID /// </summary> /// <returns></returns> private string getSalesOutID() { return("SO" + StrHelper.GetRamCode()); }
//该源码首发自www.51aspx.com(51aspx.com) protected void init() { BuyOrderID.Text = "BY" + StrHelper.GetRamCode(); BuyOrderDate.Text = DateTime.Now.ToString("yyyy-MM-dd"); }
protected void init() { TransferringOrderID.Text = "TB" + StrHelper.GetRamCode(); Date.Text = DateTime.Now.ToString("yyyy-MM-dd"); }
protected void init() { BuyReturnID.Text = "RB" + StrHelper.GetRamCode(); BuyReturnDate.Text = DateTime.Now.ToString("yyyy-MM-dd"); }