/// <summary> /// 预览数据 /// </summary> /// <param name="strType">操作类型,0为预览,1为双击单元格</param> private void ViewData(string strType = "0") { if (strType == "0") { if (!IsCheck("预览")) { return; } } UCRepairBalanceView view = new UCRepairBalanceView(strReId); view.uc = this; base.addUserControl(view, "维修结算单-预览", "view" + strReId, this.Tag.ToString(), this.Name); }
/// <summary> /// 预览数据 /// </summary> /// <param name="strType">操作类型,0为预览,1为双击单元格</param> private void ViewData(string strType="0") { if (strType == "0") { if (!IsCheck("预览")) { return; } } UCRepairBalanceView view = new UCRepairBalanceView(strReId); view.uc = this; base.addUserControl(view, "维修结算单-预览", "view" + strReId, this.Tag.ToString(), this.Name); }
void OpenDocument() { if (dgvReport.CurrentRow == null) { return; } string orderId = Convert.ToString(this.dgvReport.CurrentRow.Cells[colID.Name].Value); if (orderId.Length == 0) { return; } string type = dgvReport.CurrentRow.Cells[colType.Name].Value.ToString(); switch (type) { case "销售开单": UCSaleBillView ucSaleView = new UCSaleBillView(orderId, null); base.addUserControl(ucSaleView, "销售开单-查看", "UCSaleBillView" + orderId + "", this.Tag.ToString(), this.Name); break; case "三包结算单": UCThreeGuarantySettlementView ucView = new UCThreeGuarantySettlementView(); ucView.SettlementId = orderId; base.addUserControl(ucView, "三包结算单-查看", "UCThreeGuarantySettlementView" + orderId, this.Tag.ToString(), this.Name); break; case "维修结算单": UCRepairBalanceView ucRepairView = new UCRepairBalanceView(orderId); base.addUserControl(ucRepairView, "维修结算单-查看", "UCRepairBalanceView" + orderId, this.Tag.ToString(), this.Name); break; case "销售收款": UCReceivableAdd ucPayable = new UCReceivableAdd(WindowStatus.View, orderId, null, DataSources.EnumOrderType.RECEIVABLE); base.addUserControl(ucPayable, "应收账款-预览", "UCReceivableAdd" + orderId, this.Tag.ToString(), this.Name); break; case "往来核销": UCAccountVerificationAdd ucAccountVerificationView = new UCAccountVerificationAdd(WindowStatus.View, orderId, null); base.addUserControl(ucAccountVerificationView, "往来核销-预览", "UCAccountVerificationAdd" + orderId, this.Tag.ToString(), this.Name); break; } }
void OpenDocument() { if (dgvReport.CurrentRow == null) { return; } string orderId = Convert.ToString(this.dgvReport.CurrentRow.Cells[colID.Name].Value); if (orderId.Length == 0) { return; } string type = dgvReport.CurrentRow.Cells[colType.Name].Value.ToString(); switch (type) { case "销售开单": UCSaleBillView ucSaleView = new UCSaleBillView(orderId, null); base.addUserControl(ucSaleView, "销售开单-查看", "UCSaleBillView" + orderId + "", this.Tag.ToString(), this.Name); break; case "三包结算单": UCThreeGuarantySettlementView ucView = new UCThreeGuarantySettlementView(); ucView.SettlementId = orderId; base.addUserControl(ucView, "三包结算单-查看", "UCThreeGuarantySettlementView" + orderId, this.Tag.ToString(), this.Name); break; case "维修结算单": UCRepairBalanceView ucRepairView = new UCRepairBalanceView(orderId); base.addUserControl(ucRepairView, "维修结算单-查看", "UCRepairBalanceView" + orderId, this.Tag.ToString(), this.Name); break; } }