protected void btnDelRow_Click(object sender, EventArgs e) { //string sqlDel = "DELETE FROM DOC_GROUPCOM G WHERE G.GROUPID IN ('ZU00004','ZU00003')"; //DbHelperOra.ExecuteSql(sqlDel); String test = GridGoods.SelectedRowID; if (string.IsNullOrEmpty(test)) { Alert.Show("请选择要删除的行数据!", "消息提示", MessageBoxIcon.Warning); return; } //object obj = Doc.GetJObject(GridGoods, GridGoods.SelectedRowID); //JObject obj = Doc.GetJObject(GridGoods, GridGoods.SelectedRowID); //string gdseq = obj["GDSEQ"].ToString(); //int rowIndex = GridGoods.SelectedRowIndex; //if (hfdGROUPID.Text != "") //{ // string sqlDel = string.Format("DELETE FROM DOC_GROUPCOM G WHERE G.GROUPID='{0}' AND G.GDSEQ='{1}'", hfdGROUPID.Text, gdseq); // DbHelperOra.ExecuteSql(sqlDel); //} //PageContext.RegisterStartupScript(GridGoods.GetDeleteRowReference(rowIndex)); GridGoods.DeleteSelectedRows(); //Alert.ShowInTop("删除成功!", "消息提示", MessageBoxIcon.Warning); //int rowIndex = GridGoods.SelectedCell[0]; //PageContext.RegisterStartupScript(GridGoods.GetDeleteIndexReference(rowIndex)); //PageContext.RegisterStartupScript(GridGoods.GetDeleteRowReference(GridGoods.SelectedRowID)); }
protected override void billDelRow() { if (docFLAG.SelectedValue != "N") { Alert.Show("非『新增』单据不能删行!", "消息提示", MessageBoxIcon.Warning); return; } if (GridGoods.SelectedRowID == null) { Alert.Show("请选择数据行删除!", "消息提示", MessageBoxIcon.Warning); return; } GridGoods.DeleteSelectedRows(); //计算合计数量 List <Dictionary <string, object> > newDict = GridGoods.GetNewAddedList(); decimal bzslTotal = 0, feeTotal = 0; foreach (Dictionary <string, object> dic in newDict) { bzslTotal += Convert.ToDecimal(dic["BZSL"]); feeTotal += Convert.ToDecimal(dic["HSJJ"]) * Convert.ToDecimal(dic["BZSL"]); } JObject summary = new JObject(); summary.Add("GDNAME", "本页合计"); summary.Add("BZSL", bzslTotal.ToString()); summary.Add("HSJE", feeTotal.ToString("F2")); GridGoods.SummaryData = summary; }
protected override void billDelRow() { if (docFLAG.SelectedValue != "M") { Alert.Show("非『新增』单据不能删行!", "消息提示", MessageBoxIcon.Warning); return; } GridGoods.DeleteSelectedRows(); }
protected override void billDelRow() { if (docFLAG.SelectedValue != "M") { Alert.Show("非『新增』单据不能删行!", "消息提示", MessageBoxIcon.Warning); return; } //int rowIndex = GridGoods.SelectedRowIndex; //PageContext.RegisterStartupScript(GridGoods.GetDeleteRowReference(rowIndex)); GridGoods.DeleteSelectedRows(); }
protected override void billDelRow() { if ((",M,R").IndexOf(docFLAG.SelectedValue) < 0) { Alert.Show("非『新增』单据不能删行!", "消息提示", MessageBoxIcon.Warning); return; } if (GridGoods.SelectedRowID == null) { Alert.Show("请选择数据行删除!", "消息提示", MessageBoxIcon.Warning); return; } GridGoods.DeleteSelectedRows(); }
protected override void billDelRow() { if (ddlFLAG.SelectedValue != "M") { Alert.Show("非『新增』单据不能删行!", "消息提示", MessageBoxIcon.Warning); return; } if (GridGoods.SelectedRowID == null) { Alert.Show("当前没有选中行,无法进行【删行】操作", "操作警告", MessageBoxIcon.Warning); return; } GridGoods.DeleteSelectedRows(); }
protected override void billDelRow() { if (docFLAG.SelectedValue != "N") { Alert.Show("非新增单据不能删除!"); return; } if (GridGoods.SelectedCell == null) { return; } GridGoods.DeleteSelectedRows(); PubFunc.FormLock(FormDoc, true, ""); tbxINSERT.Enabled = true; }
protected override void billDelRow() { if (ddlFLAG.SelectedValue != "N") { Alert.Show("非新增单据不能删除!"); return; } if (GridGoods.SelectedCell == null) { return; } int rowIndex = GridGoods.SelectedRowIndex; GridGoods.DeleteSelectedRows(); }
protected override void billDelRow() { if (docFLAG.SelectedValue != "N") { Alert.Show("非新增单据不能删除!"); return; } if (GridGoods.SelectedCell == null) { return; } GridGoods.DeleteSelectedRows(); PubFunc.FormLock(FormDoc, true, ""); trbBARCODE.Enabled = true; //Alert.Show("【删行】操作成功,请点击【保存】按钮使【删行】操作生效!"); }
protected override void billDelRow() { if (docFLAG.SelectedValue != "N") { Alert.Show("非新增单据不能删除!"); return; } if (GridGoods.SelectedCell == null) { return; } //string rowIndex = GridGoods.SelectedRowID; // GridGoods.SelectedRowIndex动态行不能删除行索引,只能删除行ID //PageContext.RegisterStartupScript(GridGoods.GetDeleteRowReference(rowIndex)); GridGoods.DeleteSelectedRows(); PubFunc.FormLock(FormDoc, true, ""); //tbxINSERT.Enabled = true; }
protected void btnDelRow_Click(object sender, EventArgs e) { //201509211429 6448版本缺失 add by zhanghaicheng if (docFLAG.SelectedValue != "M") { Alert.Show("非『新增』单据不能删行!", "消息提示", MessageBoxIcon.Warning); return; } if (CheckFlagForM() && docBILLNO.Text.Length > 0) { Alert.Show("此单据已经被别人操作,请等待操作!"); return; } if (GridGoods.SelectedCell == null) { Alert.Show("当前未选中单元行,无法进行操作!", "消息提示", MessageBoxIcon.Warning); return; } GridGoods.DeleteSelectedRows(); PubFunc.FormLock(FormDoc, true, ""); docMEMO.Enabled = true; }
protected override void billDelRow() { if (docFLAG.SelectedValue != "N" && docFLAG.SelectedValue != "R") { Alert.Show("非『新增』单据不能删行!", "消息提示", MessageBoxIcon.Warning); return; } string strBillno = docSEQNO.Text; if (!Doc.getFlag(strBillno, "N", BillType) && !Doc.getFlag(strBillno, "R", BillType)) { Alert.Show("此单据已被其他人处理,请刷新页面更新单据状态!", "警告提示", MessageBoxIcon.Warning); return; } if (GridGoods.SelectedRowID == null) { Alert.Show("当前未选中单元行,无法进行操作!", "消息提示", MessageBoxIcon.Warning); return; } //PageContext.RegisterStartupScript(GridGoods.GetDeleteRowReference(GridGoods.SelectedRowID)); GridGoods.DeleteSelectedRows(); PubFunc.FormLock(FormDoc, true, ""); }
protected override void billDelRow() { if (docFLAG.SelectedValue != "M") { Alert.Show("非新增单据不能删除!"); return; } string strBillno = docSEQNO.Text; if (!Doc.getFlag(strBillno, "M", BillType)) { Alert.Show("此单据已被其他人处理,请刷新页面更新单据状态!", "警告提示", MessageBoxIcon.Warning); return; } if (GridGoods.SelectedCell == null) { return; } GridGoods.DeleteSelectedRows(); //int rowIndex = GridGoods.SelectedRowIndex; //PageContext.RegisterStartupScript(GridGoods.GetDeleteRowReference(rowIndex)); PubFunc.FormLock(FormDoc, true, ""); }
protected override void billDelRow() { if (docFLAG.SelectedValue != "M" && docFLAG.SelectedValue != "R") { string msg = "新增"; if (docFLAG.SelectedValue != "R") { msg = "驳回"; } Alert.Show("非『" + msg + "』单据不能删行!", "消息提示", MessageBoxIcon.Warning); return; } if (!CheckFlag(docFLAG.SelectedValue)) { Alert.Show("此单据已经被其他人操作,请刷新页面更新单据状态!", "消息提示", MessageBoxIcon.Warning); return; } if (GridGoods.SelectedCell == null) { Alert.Show("当前未选中数据行,无法进行操作!", "消息提示", MessageBoxIcon.Warning); return; } GridGoods.DeleteSelectedRows(); }
protected override void billDelRow() { if ((",M,R").IndexOf(docFLAG.SelectedValue) < 0) { Alert.Show("非『新增』单据不能删行!", "消息提示", MessageBoxIcon.Warning); return; } string strBillno = docSEQNO.Text; if (!Doc.getFlag(strBillno, "M", BillType) && !Doc.getFlag(strBillno, "R", BillType)) { Alert.Show("此单据已被其他人处理,请刷新页面更新单据状态!", "警告提示", MessageBoxIcon.Warning); return; } if (GridGoods.SelectedCell == null) { Alert.Show("未选择任何行,无法进行【删行】操作!", "消息提示", MessageBoxIcon.Warning); return; } else { GridGoods.DeleteSelectedRows(); } }