| | |
| | | get; set; |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 采购人 |
| | | /// </summary> |
| | | public int? CaigourenId |
| | | { |
| | | get; set; |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 采购人 |
| | | /// </summary> |
| | | public string Caigouren |
| | | { |
| | | get; set; |
| | | } |
| | | |
| | | #endregion Model |
| | | |
| | | #region Visiter |
| | |
| | | this.WarehouseName = isChange ? MyConvert.ConvertToString(value) : WarehouseName; |
| | | theValue = this.WarehouseName; |
| | | } |
| | | |
| | | else if ("Caigouren".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 28) |
| | | { |
| | | this.Caigouren = isChange ? MyConvert.ConvertToString(value) : Caigouren; |
| | | theValue = this.Caigouren; |
| | | } |
| | | else if ("CaigourenId".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 28) |
| | | { |
| | | this.CaigourenId = isChange ? MyConvert.ConvertToInt32(value) : CaigourenId; |
| | | theValue = this.CaigourenId; |
| | | } |
| | | |
| | | return theValue; |
| | | } |
| | | #endregion |
| | |
| | | new SqlParameter("@ReceiveMoney",decimal.Parse("0")), |
| | | new SqlParameter("@Commodityid",trueModel.Commodityid), |
| | | new SqlParameter("@orderId",trueModel.orderId.HasValue?trueModel.orderId.Value:0), |
| | | new SqlParameter("@DocumentName",string.IsNullOrEmpty(trueModel.DocumentName)?"":trueModel.DocumentName) |
| | | new SqlParameter("@DocumentName",string.IsNullOrEmpty(trueModel.DocumentName)?"":trueModel.DocumentName), |
| | | new SqlParameter("@CaigourenId",trueModel.CaigourenId.HasValue?trueModel.CaigourenId.Value:0), |
| | | new SqlParameter("@Caigouren",string.IsNullOrEmpty(trueModel.Caigouren)?"":trueModel.Caigouren), |
| | | }; |
| | | try |
| | | { |
| | |
| | | new SqlParameter("@ReceiveMoney",trueModel.ReceiveMoney), |
| | | new SqlParameter("@Commodityid",trueModel.Commodityid), |
| | | new SqlParameter("@WarehouseName",string.IsNullOrEmpty(trueModel.WarehouseName)?"":trueModel.WarehouseName), |
| | | new SqlParameter("@CaigourenId",trueModel.CaigourenId.HasValue?trueModel.CaigourenId.Value:0), |
| | | new SqlParameter("@Caigouren",string.IsNullOrEmpty(trueModel.Caigouren)?"":trueModel.Caigouren), |
| | | }; |
| | | try |
| | | { |
| | |
| | | } |
| | | if (!string.IsNullOrEmpty(Operator)) |
| | | { |
| | | Condition += string.Format(" and Operator='{0}'", Operator); |
| | | Condition += string.Format(" and Caigouren like '%{0}%'", Operator); |
| | | } |
| | | if (!string.IsNullOrEmpty(ClearingStatusId)) |
| | | { |
| | |
| | | |
| | | //批量入库 |
| | | function addModelList() { |
| | | top.Dialog.open({ URL: "/Pages/procurement/StorageVolume.aspx?Keyid='0'", Title: "批量入库", Width: 1000, Height: 500 }); |
| | | top.Dialog.open({ URL: "/Pages/procurement/StorageVolume.aspx?Keyid='0'", Title: "批量入库", Width: 1200, Height: 500 }); |
| | | } |
| | | |
| | | //打印明细 |
| | |
| | | // <自动生成> |
| | | // 此代码由工具生成。 |
| | | // |
| | | // 对此文件的更改可能会导致不正确的行为,并且如果 |
| | | // 重新生成代码,这些更改将会丢失。 |
| | | // 对此文件的更改可能导致不正确的行为,如果 |
| | | // 重新生成代码,则所做更改将丢失。 |
| | | // </自动生成> |
| | | //------------------------------------------------------------------------------ |
| | | |
| | | namespace CY.WebForm.Pages.procurement { |
| | | |
| | | |
| | | public partial class InventoryList { |
| | | |
| | | namespace CY.WebForm.Pages.procurement |
| | | { |
| | | |
| | | |
| | | public partial class InventoryList |
| | | { |
| | | |
| | | /// <summary> |
| | | /// CMSHead1 控件。 |
| | | /// </summary> |
| | |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::CY.WebForm.Pages.common.CMSHead CMSHead1; |
| | | |
| | | |
| | | /// <summary> |
| | | /// form1 控件。 |
| | | /// </summary> |
| | |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlForm form1; |
| | | |
| | | |
| | | /// <summary> |
| | | /// txtRegTimeStart 控件。 |
| | | /// </summary> |
| | |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlInputText txtRegTimeStart; |
| | | |
| | | |
| | | /// <summary> |
| | | /// txtRegTimeEnd 控件。 |
| | | /// </summary> |
| | |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlInputText txtRegTimeEnd; |
| | | |
| | | |
| | | /// <summary> |
| | | /// selWarehouseId 控件。 |
| | | /// </summary> |
| | |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlSelect selWarehouseId; |
| | | |
| | | |
| | | /// <summary> |
| | | /// dwCommity 控件。 |
| | | /// </summary> |
| | |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.WebControls.DropDownList dwCommity; |
| | | |
| | | |
| | | /// <summary> |
| | | /// dwGoodsList 控件。 |
| | | /// </summary> |
| | |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.WebControls.DropDownList dwGoodsList; |
| | | |
| | | |
| | | /// <summary> |
| | | /// selOpretor 控件。 |
| | | /// </summary> |
| | |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlInputText selOpretor; |
| | | |
| | | |
| | | /// <summary> |
| | | /// dwBrand 控件。 |
| | | /// </summary> |
| | |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.WebControls.DropDownList dwBrand; |
| | | |
| | | |
| | | /// <summary> |
| | | /// dwSpecification 控件。 |
| | | /// </summary> |
| | |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.WebControls.DropDownList dwSpecification; |
| | | |
| | | |
| | | /// <summary> |
| | | /// trWeight 控件。 |
| | | /// </summary> |
| | |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlTableCell trWeight; |
| | | |
| | | |
| | | /// <summary> |
| | | /// dwPaperWeight 控件。 |
| | | /// </summary> |
| | |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.WebControls.DropDownList dwPaperWeight; |
| | | |
| | | |
| | | /// <summary> |
| | | /// btn_Register 控件。 |
| | | /// </summary> |
| | |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.WebControls.Button btn_Register; |
| | | |
| | | |
| | | /// <summary> |
| | | /// ReInventoryList 控件。 |
| | | /// </summary> |
| | |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.WebControls.Repeater ReInventoryList; |
| | | |
| | | |
| | | /// <summary> |
| | | /// NowPageAllMoney 控件。 |
| | | /// </summary> |
| | |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlGenericControl NowPageAllMoney; |
| | | |
| | | |
| | | /// <summary> |
| | | /// AllMoney 控件。 |
| | | /// </summary> |
| | |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlGenericControl AllMoney; |
| | | |
| | | |
| | | /// <summary> |
| | | /// UCPager1 控件。 |
| | | /// </summary> |
| | |
| | | 供应商: |
| | | </td> |
| | | <td> |
| | | <select id="selSuppliers" runat="server" class="Sreq" datatextfield="Name" keepdefaultstyle="true" datavaluefield="Keyid" msg="供应商不能为空"> |
| | | <select id="selSuppliers" runat="server" datatextfield="Name" keepdefaultstyle="true" datavaluefield="Keyid" msg="供应商不能为空" selinputhtml="True" class="Sreq w122px"> |
| | | </select> |
| | | </td> |
| | | <td class="ali03 "> |
| | |
| | | </table> |
| | | </form> |
| | | <script type="text/javascript"> |
| | | |
| | | |
| | | //为Select新增过滤功能 |
| | | function SelectAddSearch() { |
| | | $("select[SelInputHtml='True']").each(function (i, v) { |
| | | $(this).unbind("blur"); |
| | | var old = $(this).html(); |
| | | var oldObject = $(this).clone(); |
| | | var sign = "selectS" + i; |
| | | $(v).attr("sign", sign); |
| | | |
| | | var inputClass = "input_" + sign; |
| | | var html = "<span style='margin-left:10px'>过滤:</span><input type='text' class='" + inputClass + "' style='width:80px;height:18px;line-height:18px;'/>";//<span onclick='showCustomer()' style=\"padding-left:10px;\" class=\"a_under\">新增供应商</span> |
| | | $(v).after(html); |
| | | $("." + inputClass).blur(function () { |
| | | var nowval = $(this).val().trim(); |
| | | var output = ""; |
| | | if (nowval == "" || nowval == null) { |
| | | output = old; |
| | | } else { |
| | | output += "<option value=''>请选择</option>"; |
| | | var valueArr = new Array(); |
| | | oldObject.find("option").each(function (ii, vv) { |
| | | |
| | | var value = $.trim($(vv).attr("value")); |
| | | var text = $.trim($(vv).text()); |
| | | |
| | | if (text.indexOf(nowval) >= 0) |
| | | valueArr.push(value + "|||" + text); |
| | | }); |
| | | for (var ss in valueArr) { |
| | | var s = valueArr[ss]; |
| | | if (s.split("|||").length == 2) { |
| | | var value1 = s.split("|||")[0]; |
| | | var text1 = s.split("|||")[1]; |
| | | output += "<option value='" + value1 + "'>" + text1 + "</option>"; |
| | | } |
| | | } |
| | | } |
| | | $(v).html(output); |
| | | }); |
| | | }); |
| | | } |
| | | |
| | | $(function () { |
| | | $("#dwCommity option").each(function (ii, vv) { |
| | | $(this).html($(this).html().replace(/[.]/g, " ")); |
| | |
| | | $("#txtAllMoney").val(eda); |
| | | } |
| | | } |
| | | |
| | | |
| | | SelectAddSearch(); |
| | | }); |
| | | |
| | | |
| | | |
| | | |
| | | </script> |
| | | </body> |
| | | </html> |
| | |
| | | // <自动生成> |
| | | // 此代码由工具生成。 |
| | | // |
| | | // 对此文件的更改可能会导致不正确的行为,并且如果 |
| | | // 重新生成代码,这些更改将会丢失。 |
| | | // 对此文件的更改可能导致不正确的行为,如果 |
| | | // 重新生成代码,则所做更改将丢失。 |
| | | // </自动生成> |
| | | //------------------------------------------------------------------------------ |
| | | |
| | | namespace CY.WebForm.Pages.procurement { |
| | | |
| | | |
| | | public partial class OutOfStorageEdit { |
| | | |
| | | namespace CY.WebForm.Pages.procurement |
| | | { |
| | | |
| | | |
| | | public partial class OutOfStorageEdit |
| | | { |
| | | |
| | | /// <summary> |
| | | /// CMSHead1 控件。 |
| | | /// </summary> |
| | |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::CY.WebForm.Pages.common.CMSHead CMSHead1; |
| | | |
| | | |
| | | /// <summary> |
| | | /// form1 控件。 |
| | | /// </summary> |
| | |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlForm form1; |
| | | |
| | | |
| | | /// <summary> |
| | | /// dwWarehouse 控件。 |
| | | /// </summary> |
| | |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.WebControls.DropDownList dwWarehouse; |
| | | |
| | | |
| | | /// <summary> |
| | | /// dwCommity 控件。 |
| | | /// </summary> |
| | |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.WebControls.DropDownList dwCommity; |
| | | |
| | | |
| | | /// <summary> |
| | | /// dwGoodsList 控件。 |
| | | /// </summary> |
| | |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.WebControls.DropDownList dwGoodsList; |
| | | |
| | | |
| | | /// <summary> |
| | | /// div_none 控件。 |
| | | /// </summary> |
| | |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlGenericControl div_none; |
| | | |
| | | |
| | | /// <summary> |
| | | /// selSuppliers 控件。 |
| | | /// </summary> |
| | |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlSelect selSuppliers; |
| | | |
| | | |
| | | /// <summary> |
| | | /// dwBrand 控件。 |
| | | /// </summary> |
| | |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.WebControls.DropDownList dwBrand; |
| | | |
| | | |
| | | /// <summary> |
| | | /// dwSpecification 控件。 |
| | | /// </summary> |
| | |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.WebControls.DropDownList dwSpecification; |
| | | |
| | | |
| | | /// <summary> |
| | | /// div_td 控件。 |
| | | /// </summary> |
| | |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlGenericControl div_td; |
| | | |
| | | |
| | | /// <summary> |
| | | /// dwPaperWeight 控件。 |
| | | /// </summary> |
| | |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.WebControls.DropDownList dwPaperWeight; |
| | | |
| | | |
| | | /// <summary> |
| | | /// txtQuantity 控件。 |
| | | /// </summary> |
| | |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlInputText txtQuantity; |
| | | |
| | | |
| | | /// <summary> |
| | | /// txtPrice 控件。 |
| | | /// </summary> |
| | |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlInputText txtPrice; |
| | | |
| | | |
| | | /// <summary> |
| | | /// div_tanPrice 控件。 |
| | | /// </summary> |
| | |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlGenericControl div_tanPrice; |
| | | |
| | | |
| | | /// <summary> |
| | | /// txtTenPrice 控件。 |
| | | /// </summary> |
| | |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlInputText txtTenPrice; |
| | | |
| | | |
| | | /// <summary> |
| | | /// txtAllMoney 控件。 |
| | | /// </summary> |
| | |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlInputText txtAllMoney; |
| | | |
| | | |
| | | /// <summary> |
| | | /// btn_config 控件。 |
| | | /// </summary> |
| | |
| | | </td> |
| | | <asp:Panel ID="tanDiv1" runat="server"> |
| | | </asp:Panel> |
| | | |
| | | |
| | | </tr> |
| | | <tr> |
| | | <td class="ali03 "> |
| | | 采购人: |
| | | </td> |
| | | <td colspan="5" > |
| | | <select id='selCaigouren' runat="server" keepdefaultstyle='true' datavaluefield="Keyid" datatextfield='Name'> |
| | | </select> |
| | | </td> |
| | | </tr> |
| | | <tr> |
| | | <td class="ali03"> |
| | | 备注: |
| | |
| | | OA_BrandBLL _OA_BrandBLL = null; |
| | | OA_PaperWeightBLL _OA_PaperWeightBLL = null; |
| | | string Keyid = string.Empty; |
| | | BLL.OA_StaffBLL oA_StaffBLL = null; |
| | | |
| | | public ProcurementEdit() |
| | | { |
| | |
| | | _OA_GoodsInfoBLL = new OA_GoodsInfoBLL(); |
| | | GoodsInfo = new OA_GoodsInfo(); |
| | | bll_Sys_DictionaryBLL = new Sys_DictionaryBLL(); |
| | | oA_StaffBLL = new BLL.OA_StaffBLL(); |
| | | } |
| | | |
| | | protected void Page_Load(object sender, EventArgs e) |
| | |
| | | selSuppliers.DataSource = _OA_SuppliersBLL.getSupplierTable(CurrentUser.MemberId); |
| | | selSuppliers.DataBind(); |
| | | selSuppliers.Items.Insert(0, new ListItem("请选择", "")); |
| | | |
| | | |
| | | this.selCaigouren.DataSource = oA_StaffBLL.SelectListByFirmId(CurrentUser.MemberId, false, false); |
| | | this.selCaigouren.DataBind(); |
| | | this.selCaigouren.Items.Insert(0, new ListItem("无", "0")); |
| | | |
| | | ///产品类别 |
| | | /// |
| | | dwCommity.Items.Insert(0, new ListItem("请选择", "")); |
| | |
| | | this.txtTenPrice.Value = procurementModel.TanPrice.ToString(); |
| | | this.txtAllMoney.Value = procurementModel.AllMoney.ToString(); |
| | | this.txtRemark.Value = procurementModel.Remark; |
| | | this.selCaigouren.Value = (procurementModel.CaigourenId ?? 0).ToString(); ; |
| | | |
| | | } |
| | | |
| | |
| | | procurement.PurchaseStatusId = bll_Sys_DictionaryBLL.GetKeyIdByKeyid(0, "采购状态"); ///采购状态 |
| | | procurement.ClearingStatusId = bll_Sys_DictionaryBLL.GetKeyIdByKeyid(0, "结账状态"); ///结算状态 |
| | | procurement.PurchaseTime = DateTime.Now; |
| | | procurement.CaigourenId = this.selCaigouren.Value.ToInt32(); |
| | | if(procurement.CaigourenId.HasValue && procurement.CaigourenId.Value > 0) |
| | | { |
| | | var oA_Staff = oA_StaffBLL.GetModelByKeyid(procurement.CaigourenId.Value); |
| | | if (oA_Staff != null) |
| | | { |
| | | procurement.Caigouren = oA_Staff.Name; |
| | | } |
| | | |
| | | } |
| | | |
| | | if (Request["Keyid"].ToInt32() > 0) |
| | | { |
| | | OA_Procurement procurementModel = new OA_Procurement(); |
| | |
| | | procurementModel.LastUpdateTime = DateTime.Now; |
| | | procurementModel.Operator = CurrentUser.ShortName; |
| | | procurementModel.Remark = this.txtRemark.Value; |
| | | procurementModel.CaigourenId = this.selCaigouren.Value.ToInt32(); |
| | | if (procurementModel.CaigourenId.HasValue && procurementModel.CaigourenId.Value > 0) |
| | | { |
| | | var oA_Staff = oA_StaffBLL.GetModelByKeyid(procurementModel.CaigourenId.Value); |
| | | if (oA_Staff != null) |
| | | { |
| | | procurementModel.Caigouren = oA_Staff.Name; |
| | | } |
| | | |
| | | } |
| | | if (_OA_ProcurementBLL.UpdateModel(procurementModel)) |
| | | { |
| | | JavaScript.RefreshDIVOpener(this); |
| | |
| | | protected global::System.Web.UI.WebControls.Panel tanDiv1; |
| | | |
| | | /// <summary> |
| | | /// selCaigouren 控件。 |
| | | /// </summary> |
| | | /// <remarks> |
| | | /// 自动生成的字段。 |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlSelect selCaigouren; |
| | | |
| | | /// <summary> |
| | | /// txtRemark 控件。 |
| | | /// </summary> |
| | | /// <remarks> |
| | |
| | | <script type="text/javascript"> |
| | | //添加 |
| | | function addModel() { |
| | | dialog.open({ URL: "/Pages/procurement/ProcurementEdit.aspx?Keyid='0'", Title: "新增采购", Width: 650, Height: 250 }); |
| | | dialog.open({ URL: "/Pages/procurement/ProcurementEdit.aspx?Keyid='0'", Title: "新增采购", Width: 800, Height: 250 }); |
| | | } |
| | | |
| | | //打印采购信息 |
| | |
| | | |
| | | //修改 |
| | | function onEdit(keyid) { |
| | | dialog.open({ URL: "/Pages/procurement/ProcurementEdit.aspx?Keyid=" + keyid, Title: "修改采购信息", Width: 650, Height: 250 }); |
| | | dialog.open({ URL: "/Pages/procurement/ProcurementEdit.aspx?Keyid=" + keyid, Title: "修改采购信息", Width: 800, Height: 250 }); |
| | | } |
| | | |
| | | //删除 |
| | |
| | | 供应商: |
| | | </td> |
| | | <td> |
| | | <select id="selSuppliers" runat="server" datatextfield="Name" datavaluefield="Keyid" keepdefaultstyle='true' selinputhtml="True" class="Sreq w122px"> |
| | | <select id="selSuppliers" runat="server" datatextfield="Name" datavaluefield="Keyid" keepdefaultstyle='true' selinputhtml="True" class="w122px"> |
| | | </select> |
| | | </td> |
| | | <td class="ali03 "> |
| | |
| | | <th> |
| | | 采购时间 |
| | | </th> |
| | | <th> |
| | | 采购人 |
| | | </th> |
| | | <th width="150"> |
| | | 操作 |
| | | </th> |
| | |
| | | <td> |
| | | <%#Eval("PurchaseTime")%> |
| | | </td> |
| | | <td> |
| | | <%#Eval("Caigouren")%> |
| | | </td> |
| | | <td class="Operate"> |
| | | <span menu_member_case_id="case_onView" menu_member_case_name="查看" onclick="onView(<%#Eval("Keyid")%>)">查看</span> <span menu_member_case_id="case_onEdit" menu_member_case_name="修改" onclick="onEdit('<%#Eval("Keyid")%>')">修改</span> <span menu_member_case_id="case_onDelete" menu_member_case_name="删除" onclick="onDelete(<%#Eval("Keyid")%>)">删除</span> |
| | | </td> |
| | |
| | | window.location = location; |
| | | } |
| | | |
| | | //为Select新增过滤功能 |
| | | function SelectAddSearch() { |
| | | $("select[SelInputHtml='True']").each(function (i, v) { |
| | | $(this).unbind("blur"); |
| | | var old = $(this).html(); |
| | | var oldObject = $(this).clone(); |
| | | var sign = "selectS" + i; |
| | | $(v).attr("sign", sign); |
| | | |
| | | var inputClass = "input_" + sign; |
| | | var html = "<span style='margin-left:10px'>过滤:</span><input type='text' class='" + inputClass + "' style='width:80px;height:18px;line-height:18px;'/>";//<span onclick='showCustomer()' style=\"padding-left:10px;\" class=\"a_under\">新增供应商</span> |
| | | $(v).after(html); |
| | | $("." + inputClass).blur(function () { |
| | | var nowval = $(this).val().trim(); |
| | | var output = ""; |
| | | if (nowval == "" || nowval == null) { |
| | | output = old; |
| | | } else { |
| | | output += "<option value=''>请选择</option>"; |
| | | var valueArr = new Array(); |
| | | oldObject.find("option").each(function (ii, vv) { |
| | | |
| | | var value = $.trim($(vv).attr("value")); |
| | | var text = $.trim($(vv).text()); |
| | | |
| | | if (text.indexOf(nowval) >= 0) |
| | | valueArr.push(value + "|||" + text); |
| | | }); |
| | | for (var ss in valueArr) { |
| | | var s = valueArr[ss]; |
| | | if (s.split("|||").length == 2) { |
| | | var value1 = s.split("|||")[0]; |
| | | var text1 = s.split("|||")[1]; |
| | | output += "<option value='" + value1 + "'>" + text1 + "</option>"; |
| | | } |
| | | } |
| | | } |
| | | $(v).html(output); |
| | | }); |
| | | }); |
| | | } |
| | | |
| | | $(function () { |
| | | |
| | | |
| | | SelectAddSearch(); |
| | | }); |
| | | |
| | | |
| | | </script> |
| | | </head> |
| | |
| | | <td class="ali03"> |
| | | 供应商: |
| | | </td> |
| | | <td> |
| | | <select id="selSuppliers" runat="server" datatextfield="Name" datavaluefield="Keyid" keepdefaultstyle='true'> |
| | | <td style="width: 315px" > |
| | | <select id="selSuppliers" runat="server" datatextfield="Name" datavaluefield="Keyid" keepdefaultstyle='true' selinputhtml="True" class="w122px" > |
| | | </select> |
| | | </td> |
| | | <td class="ali03"> |
| | |
| | | // <自动生成> |
| | | // 此代码由工具生成。 |
| | | // |
| | | // 对此文件的更改可能会导致不正确的行为,并且如果 |
| | | // 重新生成代码,这些更改将会丢失。 |
| | | // 对此文件的更改可能导致不正确的行为,如果 |
| | | // 重新生成代码,则所做更改将丢失。 |
| | | // </自动生成> |
| | | //------------------------------------------------------------------------------ |
| | | |
| | | namespace CY.WebForm.Pages.procurement { |
| | | |
| | | |
| | | public partial class StorageVolume { |
| | | |
| | | namespace CY.WebForm.Pages.procurement |
| | | { |
| | | |
| | | |
| | | public partial class StorageVolume |
| | | { |
| | | |
| | | /// <summary> |
| | | /// CMSHead1 控件。 |
| | | /// </summary> |
| | |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::CY.WebForm.Pages.common.CMSHead CMSHead1; |
| | | |
| | | |
| | | /// <summary> |
| | | /// form1 控件。 |
| | | /// </summary> |
| | |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlForm form1; |
| | | |
| | | |
| | | /// <summary> |
| | | /// txtRegTimeStart 控件。 |
| | | /// </summary> |
| | |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlInputText txtRegTimeStart; |
| | | |
| | | |
| | | /// <summary> |
| | | /// txtRegTimeEnd 控件。 |
| | | /// </summary> |
| | |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlInputText txtRegTimeEnd; |
| | | |
| | | |
| | | /// <summary> |
| | | /// selSuppliers 控件。 |
| | | /// </summary> |
| | |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlSelect selSuppliers; |
| | | |
| | | |
| | | /// <summary> |
| | | /// dwCommity 控件。 |
| | | /// </summary> |
| | |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.WebControls.DropDownList dwCommity; |
| | | |
| | | |
| | | /// <summary> |
| | | /// selGoodsName 控件。 |
| | | /// </summary> |
| | |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlSelect selGoodsName; |
| | | |
| | | |
| | | /// <summary> |
| | | /// selOpretor 控件。 |
| | | /// </summary> |
| | |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlInputText selOpretor; |
| | | |
| | | |
| | | /// <summary> |
| | | /// selPurchaseStatus 控件。 |
| | | /// </summary> |
| | |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlSelect selPurchaseStatus; |
| | | |
| | | |
| | | /// <summary> |
| | | /// selClearingStatus 控件。 |
| | | /// </summary> |
| | |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlSelect selClearingStatus; |
| | | |
| | | |
| | | /// <summary> |
| | | /// btn_Register 控件。 |
| | | /// </summary> |
| | |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.WebControls.Button btn_Register; |
| | | |
| | | |
| | | /// <summary> |
| | | /// ReProcurentList 控件。 |
| | | /// </summary> |
| | |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.WebControls.Repeater ReProcurentList; |
| | | |
| | | |
| | | /// <summary> |
| | | /// UCPager1 控件。 |
| | | /// </summary> |