protected override void billOpen(string strBillno) { //表头进行赋值 DataTable dtDoc = DbHelperOra.Query(string.Format(strDocSql, strBillno)).Tables[0]; PubFunc.FormDataSet(FormDoc, dtDoc.Rows[0]); tgxGoods.Text = ""; TabStrip1.ActiveTabIndex = 1; if (ddlISPH.SelectedValue == "Y") { GridColumn PH = GridGoods.FindColumn("PH"); PH.Hidden = false; GridColumn RQ_SC = GridGoods.FindColumn("RQ_SC"); RQ_SC.Hidden = false; GridColumn YXQZ = GridGoods.FindColumn("YXQZ"); YXQZ.Hidden = false; } else { GridColumn PH = GridGoods.FindColumn("PH"); PH.Hidden = true; GridColumn RQ_SC = GridGoods.FindColumn("RQ_SC"); RQ_SC.Hidden = true; GridColumn YXQZ = GridGoods.FindColumn("YXQZ"); YXQZ.Hidden = true; } page(strBillno); if (ddlISSD.SelectedValue.Equals("N")) { btnSave.Enabled = false; btnAudit.Enabled = false; btnCancel.Enabled = false; btnPrint.Enabled = false; btnSD.Enabled = true; btnGoods.Enabled = false; btnRept.Enabled = false; } else if (ddlFLAG.SelectedValue == "N") { btnSave.Enabled = true; btnAudit.Enabled = true; btnCancel.Enabled = true; btnPrint.Enabled = true; btnSD.Enabled = false; btnGoods.Enabled = true; btnRept.Enabled = true; } else { btnSave.Enabled = false; btnAudit.Enabled = false; btnCancel.Enabled = false; btnPrint.Enabled = true; btnSD.Enabled = false; btnGoods.Enabled = false; btnRept.Enabled = false; } tgxGoods.Enabled = true; }
protected void GridGoods_RowDataBound(object sender, GridRowEventArgs e) { DataRowView row = e.DataItem as DataRowView; if (row != null) { string flag = row["FLAG"].ToString(); FineUIPro.BoundField flagcol = GridGoods.FindColumn("FLAGNAME") as FineUIPro.BoundField; if (flag != "Y" && flag != "R") { foreach (GridColumn column in GridGoods.Columns) { e.CellAttributes[flagcol.ColumnIndex]["data-color"] = "f-grid-cell-uneditable"; } } if (flag == "C") { e.CellAttributes[flagcol.ColumnIndex]["data-color"] = "color1"; } if (flag == "Y") { e.CellAttributes[flagcol.ColumnIndex]["data-color"] = "color2"; } if (flag == "R") { e.CellAttributes[flagcol.ColumnIndex]["data-color"] = "color3"; } } }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { if (Request.QueryString["cx"] != null && Request.QueryString["cx"].ToString() != "") { hfdSearch.Text = Request.QueryString["cx"].ToString(); } if (Request.QueryString["bm"] != null && Request.QueryString["bm"].ToString() != "") { hfdDept.Text = Request.QueryString["bm"].ToString(); } if (Request.QueryString["su"] != null && Request.QueryString["su"].ToString() != "") { //是否高值使用 hfdSupplier.Text = Request.QueryString["su"].ToString(); if (hfdSupplier.Text == "Y") { GridColumn DSNUMColumn = GridGoods.FindColumn("DSNUM"); DSNUMColumn.Hidden = true; GridColumn NUM1Column = GridGoods.FindColumn("NUM1"); NUM1Column.Hidden = true; GridColumn NUM3Column = GridGoods.FindColumn("NUM3"); NUM3Column.Hidden = true; } } DataSearch(); btnClose.OnClientClick = ActiveWindow.GetHideReference(); BillBase.Grid_Goods = GridGoods; } }
protected void ISNOPH(bool flag) { if (flag) { GridColumn LOCKSL = GridGoods.FindColumn("LOCKSL"); LOCKSL.Hidden = false; //GridColumn PHID = GridGoods.FindColumn("PHID"); //PHID.Hidden = false; //GridColumn RQ_SC = GridGoods.FindColumn("RQ_SC"); //RQ_SC.Hidden = false; //GridColumn YXQZ = GridGoods.FindColumn("YXQZ"); //YXQZ.Hidden = false; GridColumn PIZNO = GridGoods.FindColumn("PIZNO"); PIZNO.Hidden = false; GridColumn PSSID = GridGoods.FindColumn("PSSID"); PSSID.Hidden = false; GridColumn SUPID = GridGoods.FindColumn("SUPID"); SUPID.Hidden = false; GridColumn HWID = GridGoods.FindColumn("HWID"); HWID.Hidden = false; GridColumn BILLNO = GridGoods.FindColumn("BILLNO"); BILLNO.Hidden = false; ddlSHSID.Enabled = true; tbxHWID.Enabled = true; tbxPHID.Enabled = true; } else { //GridColumn LOCKSL = GridGoods.FindColumn("LOCKSL"); //LOCKSL.Hidden = true; //GridColumn PHID = GridGoods.FindColumn("PHID"); //PHID.Hidden = true; //GridColumn RQ_SC = GridGoods.FindColumn("RQ_SC"); //RQ_SC.Hidden = true; //GridColumn YXQZ = GridGoods.FindColumn("YXQZ"); //YXQZ.Hidden = true; GridColumn PIZNO = GridGoods.FindColumn("PIZNO"); PIZNO.Hidden = true; GridColumn PSSID = GridGoods.FindColumn("PSSID"); PSSID.Hidden = true; GridColumn SUPID = GridGoods.FindColumn("SUPID"); SUPID.Hidden = true; GridColumn HWID = GridGoods.FindColumn("HWID"); HWID.Hidden = true; GridColumn BILLNO = GridGoods.FindColumn("BILLNO"); BILLNO.Hidden = true; ddlSHSID.Enabled = false; tbxHWID.Enabled = false; tbxPHID.Enabled = true; ddlSHSID.SelectedValue = ""; tbxHWID.Text = ""; //tbxPHID.Text = ""; } }
protected void GridGoods_RowDataBound(object sender, GridRowEventArgs e) { DataRowView dataItem = e.DataItem as DataRowView; string flag = dataItem["HSFLAG"].ToString(); if (flag == "未回收") { FineUIPro.BoundField flagcol = GridGoods.FindColumn("HSFLAG") as FineUIPro.BoundField; e.CellCssClasses[flagcol.ColumnIndex] = "color1"; } }
protected void GridGoods_RowDataBound(object sender, GridRowEventArgs e) { //渲染颜色 DataRowView row = e.DataItem as DataRowView; string DHZQ1 = row["DHZQ1"].ToString(); RenderField rDHZQ1 = GridGoods.FindColumn("DHZQ1") as RenderField; if (DHZQ1 == "A") { e.CellCssClasses[rDHZQ1.ColumnIndex] = "color1"; } }
protected void GridGoods_RowDataBound(object sender, GridRowEventArgs e) { DataRowView row = e.DataItem as DataRowView; if (row != null) { FineUIPro.BoundField flagcol = GridGoods.FindColumn("SLSL") as FineUIPro.BoundField; if (Convert.ToInt32(row["KCSL"]) < Convert.ToInt32(row["SLSL"])) { e.CellAttributes[flagcol.ColumnIndex]["data-color"] = "color3"; } } }
protected void GridGoods_RowDataBound(object sender, GridRowEventArgs e) { DataRowView row = e.DataItem as DataRowView; if (row != null) { string flag = row["PJTYPENAME"].ToString(); FineUIPro.BoundField flagcol = GridGoods.FindColumn("PJTYPENAME") as FineUIPro.BoundField; if (flag == "未评价") { e.CellAttributes[flagcol.ColumnIndex]["data-color"] = "color1"; } } }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { //ymh重新定义传递参数 if (Request.QueryString["Deptout"] != null && Request.QueryString["Deptout"].ToString() != "") { //出库部门 hfdDeptOut.Text = Request.QueryString["Deptout"].ToString(); } if (Request.QueryString["DeptIn"] != null && Request.QueryString["DeptIn"].ToString() != "") { //入库部门 hfdDeptIn.Text = Request.QueryString["DeptIn"].ToString(); } if (Request.QueryString["Sup"] != null && Request.QueryString["Sup"].ToString() != "") { //供应商 hfdSupplier.Text = Request.QueryString["Sup"].ToString(); } if (Request.QueryString["Pss"] != null && Request.QueryString["Pss"].ToString() != "") { //配送商 hfdProvider.Text = Request.QueryString["Pss"].ToString(); } if (Request.QueryString["Pde"] != null && Request.QueryString["Pde"].ToString() != "") { //生产商 hfdProducer.Text = Request.QueryString["Pde"].ToString(); } if (Request.QueryString["Shs"] != null && Request.QueryString["Shs"].ToString() != "") { //送货商 hfdShs.Text = Request.QueryString["Shs"].ToString(); } if (Request.QueryString["goodsType"] != null && Request.QueryString["goodsType"].ToString() != "") { //商品类型 hfdGoodsType.Text = Request.QueryString["goodsType"].ToString(); //科室申领取消隐藏列 FineUIPro.GridColumn CKKCSL = GridGoods.FindColumn("CKKCSL"); CKKCSL.Hidden = false; } if (Request.QueryString["isGZ"] != null && Request.QueryString["isGZ"].ToString() != "") { //高值 hfdisGZ.Text = Request.QueryString["isGZ"].ToString(); } if (Request.QueryString["isdg"] != null && Request.QueryString["isdg"].ToString() != "") { //是否代管 hfdISDG.Text = Request.QueryString["isdg"].ToString(); } if (Request.QueryString["GoodsState"] != null && Request.QueryString["GoodsState"].ToString() != "") { //根据传递页面判断商品状态 hfdGoodsState.Text = Request.QueryString["GoodsState"].ToString(); } DataSearch(); btnClose.OnClientClick = ActiveWindow.GetHideReference(); BillBase.Grid_Goods = GridGoods; } }