private void taal_Click(object sender, RoutedEventArgs e) { Window4 wiskunde = new Window4(); wiskunde.Show(); this.Close();; }
/// <summary> /// 添加商品 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void ButtonStockAdd_Click(object sender, EventArgs e) { FineUI.DropDownList ddlstock = Window4.FindControl("PanelGrid4").FindControl("Panel_Search").FindControl("window_ddl_Stock") as FineUI.DropDownList; FineUI.DropDownList _window_ddl_INV_TYPE = Window4.FindControl("PanelGrid4").FindControl("Panel_Search").FindControl("window_ddl_INV_TYPE") as FineUI.DropDownList; FineUI.DropDownList _window_ddl_Stock = Window4.FindControl("PanelGrid4").FindControl("Panel_Search").FindControl("window_ddl_Stock") as FineUI.DropDownList; string invType = _window_ddl_INV_TYPE.SelectedValue; string invStock = _window_ddl_Stock.SelectedValue; ddlINV_TYPE.SelectedValue = invType; ddlstock.SelectedValue = invStock; string _SHOP_ID = ddlSHOP_NAME.SelectedValue; if (invType == "4") { Grid2.DataSource = null; Grid2.DataBind(); Toolbar21111.Enabled = true; } else { DataTable dt = new DataTable(); dt = (DataTable)SPs.GET_STOCK01_PROD(invStock, "", _SHOP_ID, invType).ExecuteDataTable(); Grid2.DataSource = dt; Grid2.DataBind(); Toolbar21111.Enabled = false; } }
/// <summary> /// 添加连接信息 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void ButDevAdd_Click(object sender, DirectEventArgs e) { try { HidSaveFlag.Value = "1"; Button5.Hidden = false; Window4.Title = GetLangStr("CCTVStationManager48", "添加连接设备"); CmbDevice.AllowBlank = false; CmbStationType.AllowBlank = false; CmbStationType.Reset(); TxtQStationName.Reset(); CmbDevice.Reset(); CmbStation.Reset(); MNumChannel.Reset(); RNumChannel.Reset(); CmbDirection.Reset(); CmbDeviceRecord.Reset(); TxtMasterId.Reset(); CmbIsuse.Reset(); ButQuery.Hidden = false; CmbDeviceRecord.Hidden = false; CmbStationType.Hidden = false; TxtQStationName.Hidden = false; CmbDevice.Hidden = false; CmbStation.Hidden = false; CompositeField1.Hidden = false; Window4.Show(); } catch (Exception ex) { ILog.WriteErrorLog(ex); logManager.InsertLogError("CCTVStationManager.aspx-ButDevAdd_Click", ex.Message + ";" + ex.StackTrace, "ButDevAdd_Click has an exception"); } }
protected void ButDevAdd_Click(object sender, DirectEventArgs e) { try { HidSaveFlag.Value = "1"; Button5.Hidden = false; Text_SBBH.Text = tgsPproperty.GetRecordId(); Cob_SBLX.Reset(); Text_SBMC.Reset(); Cob_SBXH.Reset(); Cob_SFSY.Reset(); Text_IP.Reset(); Text_DK.Reset(); Text_TYDS.Reset(); Cob_TXLX.Reset(); Cob_TXXY.Reset(); Text_YHM.Reset(); Text_MM.Reset(); Cob_JSDW.Reset(); Cob_ZZCS.Reset(); Cob_WHDW.Reset(); Window4.Show(); } catch (Exception ex) { ILog.WriteErrorLog(ex); logManager.InsertLogError("ServerManager.aspx-ButDevAdd_Click", ex.Message + ";" + ex.StackTrace, "ButDevAdd_Click has an exception"); } }
/// <summary> /// 检索条件 /// </summary> /// <returns></returns> public List <ConditionFun.SqlqueryCondition> OrderCondition() { List <ConditionFun.SqlqueryCondition> orderCon = new List <ConditionFun.SqlqueryCondition>(); FineUI.RadioButtonList datetype = Window4.FindControl("PanelGrid5").FindControl("Panel_Search2").FindControl("ddrDataType") as FineUI.RadioButtonList; string rValue = datetype.SelectedValue; FineUI.DatePicker wst = Window4.FindControl("PanelGrid5").FindControl("Panel_Search2").FindControl("dpSt") as FineUI.DatePicker; FineUI.DatePicker wet = Window4.FindControl("PanelGrid5").FindControl("Panel_Search2").FindControl("dpEt") as FineUI.DatePicker; string starttime = wst.Text; string endtime = wet.Text; if (rValue == "1") { orderCon.Add(new ConditionFun.SqlqueryCondition(ConstraintType.Where, OUT_BACK00Table.INPUT_DATE, Comparison.LessOrEquals, endtime, false, false)); orderCon.Add(new ConditionFun.SqlqueryCondition(ConstraintType.And, OUT_BACK00Table.INPUT_DATE, Comparison.GreaterOrEquals, starttime, false, false)); } //FineUI.DropDownList _ddlShopName = Window4.FindControl("PanelGrid5").FindControl("Panel_Search2").FindControl("w4_ddlSHOP_NAME") as FineUI.DropDownList; //string _shopid = _ddlShopName.SelectedValue; //if (!String.IsNullOrEmpty(_shopid)) //{ // orderCon.Add(new ConditionFun.SqlqueryCondition(ConstraintType.And, ORDER00Table.SHOP_ID, Comparison.Equals, _shopid, false, false)); //} return(orderCon); }
/// <summary> /// 引入按钮 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> public void BtnYR_Click(Object sender, EventArgs e) { string _shopid = ddlIN_SHOP.SelectedValue; string _stock_id = ddlSTOCK_ID.SelectedValue; if (ButtonYR.Text.Equals("取消引入")) { SPs.IN_ORDER00_OUT00_Cancel(tbxOUT_ID.Text); FineUI.Alert.ShowInParent("取消引入成功", FineUI.MessageBoxIcon.Information); return; } if (string.IsNullOrEmpty(_shopid)) { FineUI.Alert.ShowInParent("到货分店不能为空", FineUI.MessageBoxIcon.Information); return; } if (string.IsNullOrEmpty(_stock_id)) { FineUI.Alert.ShowInParent("到货分店不能为空", FineUI.MessageBoxIcon.Information); return; } FineUI.DatePicker wst = Window4.FindControl("PanelGrid5").FindControl("Panel_Search2").FindControl("dpSt") as FineUI.DatePicker; FineUI.DatePicker wet = Window4.FindControl("PanelGrid5").FindControl("Panel_Search2").FindControl("dpEt") as FineUI.DatePicker; wst.SelectedDate = DateTime.Now.Date.AddDays(-1); wet.SelectedDate = DateTime.Now.Date; Window4.Hidden = false; Window3.Hidden = true; }
/// <summary> /// 关联监测点窗口 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> /// <returns></returns> protected void btnAddStation_Click(object sender, DirectEventArgs e) { try { RowSelectionModel sm = this.GridKeyRoad.SelectionModel.Primary as RowSelectionModel; //string Id = HideRoad.Value as string; if (sm.SelectedRow != null) { GridQueryStation.RemoveAll(); GridBindStation.RemoveAll(); StoreStationType.DataSource = tgsPproperty.GetStationTypeInfo(); StoreStationType.DataBind(); StoreBindStation.DataSource = new DataTable(); StoreBindStation.DataSource = dtBind; StoreBindStation.DataBind(); TxtStationName.Reset(); CmbStationType.Reset(); StoreQueryStation.DataSource = new DataTable(); StoreQueryStation.DataBind(); Window4.Show(); } else { Notice(GetLangStr("KeyRoadManager48", "信息提示"), GetLangStr("KeyRoadManager49", "请选择道路信息!")); } } catch (Exception ex) { ILog.WriteErrorLog(ex); logManager.InsertLogError("KeyRoadManager.aspx-btnAddStation_Click", ex.Message + ";" + ex.StackTrace, "btnAddStation_Click has an exception"); } }
/// <summary> /// 检索条件 /// </summary> /// <returns></returns> public List <ConditionFun.SqlqueryCondition> OrderCondition() { List <ConditionFun.SqlqueryCondition> orderCon = new List <ConditionFun.SqlqueryCondition>(); FineUI.RadioButtonList datetype = Window4.FindControl("PanelGrid5").FindControl("Panel_Search2").FindControl("ddrDataType") as FineUI.RadioButtonList; string rValue = datetype.SelectedValue; FineUI.DatePicker wst = Window4.FindControl("PanelGrid5").FindControl("Panel_Search2").FindControl("dpSt") as FineUI.DatePicker; FineUI.DatePicker wet = Window4.FindControl("PanelGrid5").FindControl("Panel_Search2").FindControl("dpEt") as FineUI.DatePicker; string starttime = wst.Text; string endtime = wet.Text; string _shopid = ddlIN_SHOP.SelectedValue; orderCon.Add(new ConditionFun.SqlqueryCondition(ConstraintType.And, ORDER00Table.SHOP_ID, Comparison.Equals, _shopid, false, false)); orderCon.Add(new ConditionFun.SqlqueryCondition(ConstraintType.And, ORDER00Table.STATUS, Comparison.GreaterOrEquals, "2", false, false)); orderCon.Add(new ConditionFun.SqlqueryCondition(ConstraintType.And, ORDER00Table.EXPORTED, Comparison.GreaterOrEquals, "0", false, false)); if (rValue == "1") { orderCon.Add(new ConditionFun.SqlqueryCondition(ConstraintType.And, ORDER00Table.INPUT_DATE, Comparison.LessOrEquals, endtime, false, false)); orderCon.Add(new ConditionFun.SqlqueryCondition(ConstraintType.And, ORDER00Table.INPUT_DATE, Comparison.GreaterOrEquals, starttime, false, false)); } else { orderCon.Add(new ConditionFun.SqlqueryCondition(ConstraintType.And, ORDER00Table.EXPECT_DATE, Comparison.LessOrEquals, endtime, false, false)); orderCon.Add(new ConditionFun.SqlqueryCondition(ConstraintType.And, ORDER00Table.EXPECT_DATE, Comparison.GreaterOrEquals, starttime, false, false)); } return(orderCon); }
/// <summary> /// 新增仓库的商品 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> public void btn_DetailAdd2() { //string Pur_status = ddlStatus.SelectedValue; FineUI.Panel P_search = Window4.FindControl("PanelGrid4").FindControl("Panel_Search") as FineUI.Panel; P_search.Hidden = false; FineUI.DropDownList ddlstock = Window4.FindControl("PanelGrid4").FindControl("Panel_Search").FindControl("window_ddl_Stock") as FineUI.DropDownList; STOCKBll.GetInstence().BandDropDownListStock(this, ddlstock); Window4.Hidden = false; }
private void nextPage() { //Application.Current.Properties["question"] = str; Window4 window4 = new Window4(); window4.Top = this.Top + (this.ActualHeight - window4.Height) / 2; window4.Left = this.Left + (this.ActualWidth - window4.Width) / 2; window4.ShowDialog(); }
private void button7_Click(object sender, RoutedEventArgs e)//线性拟合 { if (array == null) { MessageBox.Show("请打开文件!", "提示", MessageBoxButton.OKCancel, MessageBoxImage.Information, MessageBoxResult.OK); } else { if (Done == false)//见全局变量Done的注释 { Win4 = new Window4(); Win4.ShowDialog(); } IsClick = true; Tuple <double, double> s = new Tuple <double, double>(0, 0); XAxis = new double[array.GetLength(1)]; double[] YAxis = new double[array.GetLength(1)]; //将输入的力的范围内的值取出 for (int i = 0; i < array.GetLength(1); i++) { XAxis[i] = Win4.startPoint + i * Win4.gap; } Random rd = new Random(); int RandomNum = rd.Next(0, array.GetLength(0) / 2); for (int i = 0; i < array.GetLength(1); i++) { YAxis[i] = array[RandomNum, i]; } s = MathNet.Numerics.Fit.Line(XAxis, YAxis); b = s.Item1; k = s.Item2; Done = true; if (p5 == null) { p5 = new Page5(); } content4.Content = new Frame()//将 content4.Content内容清除 { Content = null }; content3.Content = new Frame() { Content = p5 }; } }
protected void ButtonOrderAdd_Click(Object sender, EventArgs e) { FineUI.Grid Grid4 = Window4.FindControl("PanelGrid5").FindControl("Grid4") as FineUI.Grid; int[] selections = Grid4.SelectedRowIndexArray; //tbxRELATE_ID.Text = Grid4.DataKeys[0][0].ToString(); DataTable Inda = SPs.IN_Purchase00_TAKEIN11(Grid4.DataKeys[selections[0]][0].ToString(), tbxTAKEIN_ID.Text, ddlSHOP_NAME.SelectedValue).ExecuteDataTable(); Grid2.DataSource = Inda; Grid2.DataBind(); Toolbar21111.Enabled = false; }
/// <summary> /// 初始化页面数据 /// </summary> private void InitData() { ViewState["_AppendToEnd"] = true; txtCreateBy.Text = CurrentUser.AccountName; tbxBankCode.OnClientTriggerClick = Window1.GetSaveStateReference(tbxBankCode.ClientID) + Window1.GetShowReference("../../Common/WinBank.aspx"); tbxFCustomer.OnClientTriggerClick = Window2.GetSaveStateReference(txtFCode.ClientID, tbxFCustomer.ClientID) + Window2.GetShowReference("../../Common/WinCustomer.aspx"); tbxFSubjectCode.OnClientTriggerClick = Window4.GetSaveStateReference(tbxFSubjectCode.ClientID) + Window4.GetShowReference("../../Common/WinSubject.aspx"); //删除选中单元格的客户端脚本 string deleteScript = DeleteScript(); string deleteSubject = DeleteSubject(); //新增 var defaultObj = new JObject { { "FItemCode", "" }, { "FItemName", "" }, { "FSpec", "" }, { "FUnit", "" }, { "FPrice", "" }, { "FQty", "0" }, { "FBottleQty", "0" }, { "FBottleOweQty", "0" }, { "FCateName", "" }, { "colDelete", String.Format("<a href=\"javascript:;\" onclick=\"{0}\"><img src=\"{1}\"/></a>",// deleteScript, IconHelper.GetResolvedIconUrl(Icon.Delete)) }, }; //报销项目 var subjectObj = new JObject { { "FSubjectCode", "" }, { "FSubjectName", "" }, { "FAmount", "" }, { "FMemo", "" }, { "colDeleteSubject", String.Format("<a href=\"javascript:;\" onclick=\"{0}\"><img src=\"{1}\"/></a>",// deleteSubject, IconHelper.GetResolvedIconUrl(Icon.Delete)) }, }; // 在第一行新增一条数据 btnAdd.OnClientClick = Grid1.GetAddNewRecordReference(defaultObj, AppendToEnd); btnAddSubject.OnClientClick = Grid2.GetAddNewRecordReference(subjectObj, AppendSubjectToEnd); txtFDate.SelectedDate = DateTime.Now; }
void Start() { Application.targetFrameRate = 60; Stage.inst.onKeyDown.Add(OnKeyDown); _mainView = this.GetComponent<UIPanel>().ui; _testWin = new Window4(); _mainView.GetChild("n0").onClick.Add(() => { _testWin.Show(); }); StartCoroutine(WaitSomeTime()); }
void NextExample(object parameter) { var win = new Window4 { DataContext = new ViewModelWindow4() }; win.Show(); if (CloseWindowEvent != null) { CloseWindowEvent(this, null); } }
protected void Dialysis_13(object sender, DirectEventArgs e) { _PAT_IC = e.ExtraParams["pat_ic"].ToString(); _PIF_NAME = e.ExtraParams["pif_name"].ToString(); string USER_ID = Session["USER_ID"].ToString(); string usertype = Session["USER_RIGHT"].ToString(); Window4.Show(); Window4.Loader.SuspendScripting(); Window4.Loader.Url = "Dialysis_13_new.aspx?PAT_IC=" + _PAT_IC + "&PAT_NAME=" + _PIF_NAME + "&USER_ID=" + USER_ID + "&USER_TYPE=" + usertype; Window4.Loader.DisableCaching = true; Window4.LoadContent(); }
void Start() { Application.targetFrameRate = 60; Stage.inst.onKeyDown.Add(OnKeyDown); _mainView = this.GetComponent <UIPanel>().ui; _testWin = new Window4(); _mainView.GetChild("n0").onClick.Add(() => { _testWin.Show(); }); StartCoroutine(WaitSomeTime()); }
protected void ButtonOrderAdd_Click(Object sender, EventArgs e) { FineUI.Grid Grid4 = Window4.FindControl("PanelGrid5").FindControl("Grid4") as FineUI.Grid; int[] selections = Grid4.SelectedRowIndexArray; tbxRELATE_ID.Text = Grid4.DataKeys[0][0].ToString(); foreach (int i in selections) { List <ConditionFun.SqlqueryCondition> order00con = new List <ConditionFun.SqlqueryCondition>(); order00con.Add(new ConditionFun.SqlqueryCondition(ConstraintType.Where, OUT_BACK01Table.BK_ID, Comparison.Equals, Grid4.DataKeys[i][0].ToString(), false, false)); List <string> colList = new List <string>(); colList.Add("SHOP_ID"); colList.Add("PROD_ID"); colList.Add("QUANTITY"); colList.Add("STD_UNIT"); colList.Add("STD_CONVERT"); colList.Add("STD_QUAN"); colList.Add("STD_PRICE"); //colList.Add("COST_PRICE"); //colList.Add("");预留采购单位类别 DataTable da = OUT_BACK01Bll.GetInstence().GetDataTable(false, 0, colList, 0, 0, order00con, null); foreach (DataRow dr in da.Rows) { string _shopid = dr["SHOP_ID"].ToString(); string _PROD_ID = dr["PROD_ID"].ToString(); var model = new SHOP00(x => x.SHOP_ID == _shopid); var model2 = new PRODUCT00(x => x.PROD_ID == _PROD_ID); int rowCount = Grid2.Rows.Count; JObject deObject = new JObject(); deObject.Add("Id01", "0"); deObject.Add("SHOP_ID01", dr["SHOP_ID"].ToString()); deObject.Add("SHOP_NAME01", model.SHOP_NAME1); deObject.Add("IB_ID01", tbxIB_ID.Text); deObject.Add("SNo01", rowCount + 1); deObject.Add("PROD_ID01", dr["PROD_ID"].ToString()); deObject.Add("PROD_NAME01", model2.PROD_NAME1); deObject.Add("QUANTITY01", dr["QUANTITY"].ToString()); deObject.Add("STD_TYPE01", dr["STD_UNIT"].ToString()); deObject.Add("STD_UNIT01", dr["STD_UNIT"].ToString()); deObject.Add("STD_CONVERT01", dr["STD_CONVERT"].ToString()); deObject.Add("STD_QUAN01", dr["STD_QUAN"].ToString()); deObject.Add("STD_PRICE01", dr["STD_PRICE"].ToString()); deObject.Add("COST01", dr["STD_PRICE"].ToString()); deObject.Add("QUAN101", dr["STD_QUAN"].ToString()); deObject.Add("QUAN201", dr["STD_QUAN"].ToString()); deObject.Add("MEMO01", ""); deObject.Add("BAT_NO", ""); Grid2.AddNewRecord(deObject, true); } } }
/// <summary> /// 引入按钮 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> public void BtnYR_Click(Object sender, EventArgs e) { if (ButtonYR.Text.Equals("取消引入")) { SPs.IN_Purchase00_TAKEIN11_Cancel(tbxTAKEIN_ID.Text); FineUI.Alert.ShowInParent("取消引入成功", FineUI.MessageBoxIcon.Information); return; } FineUI.DatePicker wst = Window4.FindControl("PanelGrid5").FindControl("Panel_Search2").FindControl("dpSt") as FineUI.DatePicker; FineUI.DatePicker wet = Window4.FindControl("PanelGrid5").FindControl("Panel_Search2").FindControl("dpEt") as FineUI.DatePicker; wst.SelectedDate = DateTime.Now.Date.AddDays(-1); wet.SelectedDate = DateTime.Now.Date; Window4.Hidden = false; Window3.Hidden = true; }
/// <summary> /// 引入按钮 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> public void BtnYR_Click(Object sender, EventArgs e) { //string Pur_status = ddlStatus.SelectedValue; //FineUI.Panel P_search = Window3.FindControl("PanelGrid4").FindControl("Panel_Search") as FineUI.Panel; //P_search.Hidden = false; //FineUI.Button B_BtnSearchCon = Window3.FindControl("PanelGrid4").FindControl("tool_btn").FindControl("BtnSearchCon") as FineUI.Button; //FineUI.Button B_BtnAddCon = Window3.FindControl("PanelGrid4").FindControl("tool_btn").FindControl("BtnAddCon") as FineUI.Button; //B_BtnSearchCon.Hidden = false; //B_BtnAddCon.Hidden = false; FineUI.DatePicker wst = Window4.FindControl("PanelGrid5").FindControl("Panel_Search2").FindControl("dpSt") as FineUI.DatePicker; FineUI.DatePicker wet = Window4.FindControl("PanelGrid5").FindControl("Panel_Search2").FindControl("dpEt") as FineUI.DatePicker; wst.SelectedDate = DateTime.Now.Date.AddDays(-1); wet.SelectedDate = DateTime.Now.Date; Window4.Hidden = false; Window3.Hidden = true; }
public void RowDblClickShow() { try { RowSelectionModel sm = this.GridDeviceManager.SelectionModel.Primary as RowSelectionModel; if (sm.SelectedRow != null) { string id = sm.SelectedRow.RecordID; Window4.Title = GetLangStr("DeviceManager81", "查看设备信息"); DataTable dt = deviceManager.GetDeviceInfo("device_id='" + id + "'"); if (dt != null) { if (dt.Rows.Count > 0) { Text_SBBH.Text = dt.Rows[0]["DEVICE_ID"].ToString(); Cob_SBLX.Value = dt.Rows[0]["DEVICE_TYPE_ID"].ToString(); Text_SBMC.Value = dt.Rows[0]["DEVICE_NAME"].ToString(); Cob_SBXH.Value = dt.Rows[0]["DEVICE_MODE_ID"].ToString(); Cob_SFSY.Value = dt.Rows[0]["ISUSE"].ToString(); Text_IP.Text = dt.Rows[0]["IPADDRESS"].ToString(); Text_DK.Text = dt.Rows[0]["PORT"].ToString(); Text_TYDS.Text = dt.Rows[0]["CHANNELS"].ToString(); Cob_TXLX.Text = dt.Rows[0]["COMM_TYPE_ID"].ToString(); Cob_TXXY.Text = dt.Rows[0]["PROTOCOL_ID"].ToString(); Text_YHM.Text = dt.Rows[0]["USERNAME"].ToString(); Text_MM.Text = dt.Rows[0]["PASSWORD"].ToString(); Text_Ledth.Text = dt.Rows[0]["DEV_LENGTH"].ToString(); Text_Width.Text = dt.Rows[0]["DEV_WIDTH"].ToString(); Text_CKH.Text = dt.Rows[0]["PORT_NUM"].ToString(); Text_CKCS.Text = dt.Rows[0]["PORT_PARAM"].ToString(); Cob_JSDW.Value = dt.Rows[0]["BUILD_ID"].ToString(); Cob_ZZCS.Value = dt.Rows[0]["MAKE_COMPANY_ID"].ToString();; Cob_WHDW.Value = dt.Rows[0]["MAINTAIN_COMPANY_ID"].ToString(); Button5.Hidden = true; sbmc = dt.Rows[0]["DEVICE_NAME"].ToString(); Window4.Show(); } } } } catch (Exception ex) { ILog.WriteErrorLog(ex); logManager.InsertLogError("DeviceManager.aspx-RowDblClickShow", ex.Message + ";" + ex.StackTrace, "RowDblClickShow has an exception"); } }
public void Change_Click(object sender, EventArgs e) { if (AgencyName2.Text.Trim() == "") { Alert.ShowInTop("请选择所要修改的机构!"); return; } Common.Entities.Agency ag = new Common.Entities.Agency(); ag = agen.FindByName(AgencyName2.Text.Trim()); if (Convert.ToInt32(Session["SecrecyLevel"]) < 5) { if (ag.EntryPerson != Session["LoginName"].ToString()) { string str = "您无对此机构操作的权限!此机构信息为" + ag.EntryPerson + "录入,请与管理员联系!"; Alert.ShowInTop(str); return; } } Alert.Show("你确定要修改此数据吗!", "确认消息", MessageBoxIcon.Information, Window4.GetShowReference("ChangeAgency.aspx", "修改机构信息"), Target.Top); }
void Start() { Application.targetFrameRate = 60; GRoot.inst.SetContentScaleFactor(1136, 640); Stage.inst.onKeyDown.Add(OnKeyDown); UIPackage.AddPackage("UI/ModalWaiting"); UIConfig.globalModalWaiting = UIPackage.GetItemURL("ModalWaiting", "GlobalModalWaiting"); UIConfig.windowModalWaiting = UIPackage.GetItemURL("ModalWaiting", "WindowModalWaiting"); UIObjectFactory.SetPackageItemExtension(UIPackage.GetItemURL("ModalWaiting", "GlobalModalWaiting"), typeof(GlobalWaiting)); _mainView = UIPackage.CreateObject("ModalWaiting", "Main").asCom; _mainView.SetSize(GRoot.inst.width, GRoot.inst.height); _mainView.AddRelation(GRoot.inst, RelationType.Size); GRoot.inst.AddChild(_mainView); _testWin = new Window4(); _mainView.GetChild("n0").onClick.Add(() => { _testWin.Show(); }); StartCoroutine(WaitSomeTime()); }
public void AddBindStationInfo(string[] str1, int count) { try { string id = DateTime.Now.ToString("yyyyMMddHHmmssfff"); string dlId = HideRoad.Value as string; List <string> Listdeviid = new List <string>(); for (int i = 0; i < count; i++) { Listdeviid.Add(str1[i]); } if (tgsPproperty.InsertKeyroadStation(id, dlId, Listdeviid) > 0) { Notice(GetLangStr("KeyRoadManager48", "信息提示"), GetLangStr("KeyRoadManager52", "监测点关联成功!")); GetStationInfoByRoad(dlId); Window4.Hide(); } } catch (Exception ex) { ILog.WriteErrorLog(ex); logManager.InsertLogError("KeyRoadManager.aspx-AddBindStationInfo", ex.Message + ";" + ex.StackTrace, "AddBindStationInfo has an exception"); } }
public void Modify() { try { Ext.Net.SelectedListItem ss; RowSelectionModel sm = this.GridDeviceManager.SelectionModel.Primary as RowSelectionModel; if (sm.SelectedRow != null) { string id = sm.SelectedRow.RecordID; HidSaveFlag.Value = "2"; Window4.Title = GetLangStr("TGSStationManager64", "修改连接设备信息"); CmbDevice.AllowBlank = true; CmbStationType.AllowBlank = true; HiddenId.Value = id; CmbStationType.Reset(); MulCmbAppFlag.Reset(); TxtQStationName.Reset(); CmbDevice.Reset(); CmbDirection.Reset(); CmbStation.Reset(); NumChannel.Reset(); CmbIsSacn.Reset(); TxtImagePath.Reset(); TxtIpaddress.Reset(); NumPort.Reset(); CmbIsuse.Reset(); ButQuery.Hidden = true; CmbStationType.Hidden = true; TxtQStationName.Hidden = true; CmbDevice.Hidden = true; CmbStation.Hidden = true; CompositeField1.Hidden = true; DataTable dt2 = deviceManager.GetTGSSetting("*", " id = '" + id + "'"); MulCmbAppFlag.SelectedItems.Clear(); if (dt2 != null) { if (dt2.Rows.Count > 0) { this.StoreDirection.DataSource = tgsPproperty.GetDirectionInfoByStation(dt2.Rows[0]["col2"].ToString()); this.StoreDirection.DataBind(); NumChannel.Text = dt2.Rows[0]["col8"].ToString(); CmbIsSacn.Value = dt2.Rows[0]["col10"].ToString(); TxtImagePath.Text = dt2.Rows[0]["col9"].ToString(); TxtIpaddress.Text = dt2.Rows[0]["col14"].ToString(); string port = dt2.Rows[0]["col13"].ToString(); if (!string.IsNullOrEmpty(port)) { NumPort.Text = dt2.Rows[0]["col13"].ToString(); } CmbIsuse.Value = dt2.Rows[0]["col15"].ToString(); CmbDirection.Value = dt2.Rows[0]["col16"].ToString(); string appflag = dt2.Rows[0]["col20"].ToString(); string[] appflags = appflag.Split(','); for (int i = 0; i < appflags.Length; i++) { Ext.Net.SelectedListItem si = new SelectedListItem(appflags[i]); ss = si; MulCmbAppFlag.SelectedItems.Add(si); } MulCmbAppFlag.Render(); } } DataRow[] dr = dtsbmc.Select("col0='" + id + "'"); sbtd = NumChannel.Text; DataRow[] drs = dtsfqy.Select("col0='" + dt2.Rows[0]["col10"].ToString() + "'"); //CmbIsSacn.SelectedItem.Text; sfwjsm = drs[0]["col1"].ToString(); DataRow[] dr2 = dttype.Select("col0='" + dt2.Rows[0]["col15"].ToString() + "'"); sfsy = dr2[0]["col1"].ToString(); tpbclj = TxtImagePath.Text; bdljip = TxtIpaddress.Text; bdljdk = NumPort.Text; ssfx = dt2.Rows[0]["col17"].ToString(); string sygzs = GetMultiCombo(MulCmbAppFlag.SelectedItems); if (sygzs.Contains(",")) { string[] sygz = sygzs.Split(','); for (int i = 0; i < sygz.Length; i++) { DataRow[] dt3 = dtsygz.Select("col0='" + sygz[i] + "'"); sytrgz = sytrgz + "[" + dt3[0]["col1"].ToString() + "]"; } } else { DataRow[] dt3 = dtsygz.Select("col0='" + sygzs + "'"); sytrgz = sytrgz + "[" + dt3[0]["col1"].ToString() + "]"; } //sytrgz = MulCmbAppFlag.Value.ToString(); Button5.Hidden = false; Window4.Show(); } } catch (Exception ex) { ILog.WriteErrorLog(ex); logManager.InsertLogError("TGSStationManager.aspx-Modify", ex.Message + ";" + ex.StackTrace, "Modify has an exception"); } }
protected void ButtonOrderSearch_Click(Object sender, EventArgs e) { FineUI.Grid grid4 = Window4.FindControl("PanelGrid5").FindControl("Grid4") as FineUI.Grid; OUT_BACK00Bll.GetInstence().BindGrid(grid4, 0, 0, OrderCondition(), null); }
/// <summary> /// Grid1_RowCommand /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void Grid1_RowCommand(object sender, GridCommandEventArgs e) { var commandName = e.CommandName; var datakey = Grid1.DataKeys[e.RowIndex][0].ToString(); switch (commandName) { case "Delete": LiquidPlanService.Delete(p => p.KeyId == datakey && p.FCompanyId == CurrentUser.AccountComId); Alert.Show("删除成功。", MessageBoxIcon.Information); break; case "Pound": PageContext.RegisterStartupScript( Window1.GetShowReference(string.Format("./PoundEdit.aspx?KeyId={0}&action=2", datakey), "填写磅单")); break; case "Submit": var parms = new Dictionary <string, object>(); parms.Clear(); parms.Add("@companyId", CurrentUser.AccountComId); parms.Add("@keyId", datakey); SqlService.ExecuteProcedureCommand("proc_LiquidPlan", parms); Alert.Show("磅单成功。", MessageBoxIcon.Information); break; case "To": var dataqty = Grid1.DataKeys[e.RowIndex][1].ToString(); var to = LiquidToService.FirstOrDefault( p => p.XCompanyId == CurrentUser.AccountComId && p.XKeyId == datakey); if (to != null) { PageContext.RegisterStartupScript( Window4.GetShowReference(string.Format("./LiquidTo.aspx?KeyId={0}&qty={1}&action=2", datakey, dataqty), "导气")); } else { PageContext.RegisterStartupScript( Window4.GetShowReference(string.Format("./LiquidTo.aspx?KeyId={0}&qty={1}&action=1", datakey, dataqty), "导气")); } //var parmsTo = new Dictionary<string, object>(); //parmsTo.Clear(); //parmsTo.Add("@companyId", CurrentUser.AccountComId); //parmsTo.Add("@KeyId", datakey); //SqlService.ExecuteProcedureCommand("proc_LiquidTo",parmsTo); break; } BindDataGrid(); }
private void Button_Click_2(object sender, RoutedEventArgs e) { Window4 win4 = new Window4(); win4.Show(); }
/// <summary> /// 更新设备信息 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void UpdateDevice(object sender, DirectEventArgs e) { try { Hashtable hs = new Hashtable(); hs.Add("service_id", HideServiceId.Value.ToString()); hs.Add("imagepath", TxtImagePath.Text.Replace(@"\", @"\\")); hs.Add("localip", TxtIpaddress.Text); if (!string.IsNullOrEmpty(NumPort.Text)) { hs.Add("localport", NumPort.Text); } else { hs.Add("localport", "0"); } if (CmbIsSacn.SelectedIndex != -1) { hs.Add("isscanfile", CmbIsSacn.Value); } else { Notice(GetLangStr("TGSStationManager56", "信息提示"), GetLangStr("TGSStationManager57", "请选择是否文件扫描")); return; } if (CmbDirection.SelectedIndex != -1) { hs.Add("direction_id", CmbDirection.Value); } else { Notice(GetLangStr("TGSStationManager56", "信息提示"), GetLangStr("TGSStationManager58", "请选择所属方向")); return; } if (CmbIsuse.SelectedIndex != -1) { hs.Add("isuse", CmbIsuse.Value); } else { Notice(GetLangStr("TGSStationManager56", "信息提示"), GetLangStr("TGSStationManager59", "请选择是否启用")); return; } if (!string.IsNullOrEmpty(NumChannel.Text)) { hs.Add("channelid", NumChannel.Text); } else { hs.Add("channelid", "0"); } SelectedListItemCollection lists = this.MulCmbAppFlag.SelectedItems; string applyflag = string.Empty; if (lists.Count > 0) { for (int i = 0; i < lists.Count; i++) { if (i == 0) { applyflag = applyflag + lists[i].Value; } else { applyflag = applyflag + "," + lists[i].Value; } } } hs.Add("applyflag", applyflag); if (HidSaveFlag.Value.ToString() == "1") { if (CmbStation.SelectedIndex != -1) { hs.Add("station_id", CmbStation.Value); } else { Notice(GetLangStr("TGSStationManager56", "信息提示"), GetLangStr("TGSStationManager60", "请选择监测点名称")); return; } if (CmbDevice.SelectedIndex != -1) { hs.Add("device_id", CmbDevice.Value); } else { Notice(GetLangStr("TGSStationManager56", "信息提示"), GetLangStr("TGSStationManager61", "请选择设备名称")); return; } string Id = tgsPproperty.GetRecordId(); hs.Add("id", Id); if (deviceManager.InsertDeviceSetting(hs) > 0) { LedDataBind(" 1=1 and service_id='" + HideServiceId.Value.ToString() + "'"); string lblname = ""; jcdlx = CmbStationType.SelectedItem.Text; jcdmc = CmbStation.SelectedItem.Text; ljdsb = CmbDevice.SelectedItem.Text; lblname += Bll.Common.AssembleRunLog("", jcdlx, "监测点类型", "0"); lblname += Bll.Common.AssembleRunLog("", ljdsb, "连接设备", "0"); logManager.InsertLogRunning(uName, "添加:监测点[" + jcdmc + "]" + lblname, nowIp, "1"); Notice(GetLangStr("TGSStationManager56", "信息提示"), GetLangStr("TGSStationManager62", "添加成功")); Window4.Hide(); } } if (HidSaveFlag.Value.ToString() == "2") { RowSelectionModel sm = this.GridDeviceManager.SelectionModel.Primary as RowSelectionModel; sm.SelectedRow.ToBuilder(); string Id = sm.SelectedRow.RecordID; string ddid = Id; hs.Add("id", Id); if (deviceManager.UptateDeviceSetting(hs) > 0) { Window4.Hide(); LedDataBind(" 1=1 and service_id='" + HideServiceId.Value.ToString() + "'"); DataRow[] dr = dtsbmc.Select("col0='" + ddid + "'"); if (dr.Length > 0) { delName = dr[0]["col3"].ToString(); } string ssfxs = CmbDirection.SelectedItem.Text; string sbtds = NumChannel.Text; string sfwjsms = CmbIsSacn.SelectedItem.Text; string tpbcljs = TxtImagePath.Text; string bdljips = TxtIpaddress.Text; string bdljdks = NumPort.Text; string sfsys = CmbIsuse.SelectedItem.Text; string sytrgzs = ""; string sygzs = GetMultiCombo(MulCmbAppFlag.SelectedItems); if (sygzs.Contains(",")) { string[] sygz = sygzs.Split(','); for (int i = 0; i < sygz.Length; i++) { DataRow[] dt3 = dtsygz.Select("col0='" + sygz[i] + "'"); sytrgzs = sytrgz + "[" + dt3[0]["col1"].ToString() + "]"; } } else { DataRow[] dt3 = dtsygz.Select("col0='" + sygzs + "'"); sytrgzs = sytrgz + "[" + dt3[0]["col1"].ToString() + "]"; } string lblname = ""; lblname += Bll.Common.AssembleRunLog(ssfx, ssfxs, "所属方向", "1"); lblname += Bll.Common.AssembleRunLog(sbtd, sbtds, "设备通道号", "1"); lblname += Bll.Common.AssembleRunLog(sfwjsm, sfwjsms, "是否文件扫描", "1"); lblname += Bll.Common.AssembleRunLog(tpbclj, tpbcljs, "图片保存路径", "1"); lblname += Bll.Common.AssembleRunLog(bdljip, bdljips, "本地连接ip", "1"); lblname += Bll.Common.AssembleRunLog(bdljdk, bdljdks, "本地连接端口", "1"); lblname += Bll.Common.AssembleRunLog(sfsy, sfsys, "是否启用", "1"); lblname += Bll.Common.AssembleRunLog(sytrgz, sytrgzs, "使用规则", "1"); logManager.InsertLogRunning(uName, "修改设备:[" + delName + "];" + lblname, nowIp, "2"); Notice(GetLangStr("TGSStationManager56", "信息提示"), GetLangStr("TGSStationManager63", "修改成功")); } } } catch (Exception ex) { ILog.WriteErrorLog(ex); logManager.InsertLogError("TGSStationManager.aspx-UpdateDevice", ex.Message + ";" + ex.StackTrace, "UpdateDevice has an exception"); } }
/// <summary> /// 添加连接信息 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void UpdateDevice(object sender, DirectEventArgs e) { try { Hashtable hs = new Hashtable(); hs.Add("masterid", TxtMasterId.Text); if (CmbDirection.SelectedIndex != -1) { hs.Add("direction_id", CmbDirection.Value); } else { Notice(GetLangStr("CCTVStationManager49", "信息提示"), GetLangStr("CCTVStationManager50", "请选择所属方向")); return; } if (CmbIsuse.SelectedIndex != -1) { hs.Add("isuse", CmbIsuse.Value); } else { Notice(GetLangStr("CCTVStationManager49", "信息提示"), GetLangStr("CCTVStationManager51", "请选择是否启用")); return; } if (!string.IsNullOrEmpty(MNumChannel.Text)) { hs.Add("mchannelid", MNumChannel.Text); } else { Notice(GetLangStr("CCTVStationManager49", "信息提示"), GetLangStr("CCTVStationManager52", "请输入实时监视通道")); return; } if (!string.IsNullOrEmpty(RNumChannel.Text)) { hs.Add("rchannelid", RNumChannel.Text); } else { Notice(GetLangStr("CCTVStationManager49", "信息提示"), GetLangStr("CCTVStationManager53", "请输入录像回放通道")); return; } if (HidSaveFlag.Value.ToString() == "1") { if (CmbStation.SelectedIndex != -1) { hs.Add("station_id", CmbStation.Value); } else { Notice(GetLangStr("CCTVStationManager49", "信息提示"), GetLangStr("CCTVStationManager54", "请选择监测点名称")); return; } if (CmbDevice.SelectedIndex != -1) { hs.Add("mdevice_id", CmbDevice.Value); } else { Notice(GetLangStr("CCTVStationManager49", "信息提示"), GetLangStr("CCTVStationManager55", "请选择连接监视设备")); return; } if (CmbDeviceRecord.SelectedIndex != -1) { hs.Add("rdevice_id", CmbDeviceRecord.Value); } else { Notice(GetLangStr("CCTVStationManager49", "信息提示"), GetLangStr("CCTVStationManager56", "请选择连接录像回放设备")); return; } string Id = tgsDataInfo.GetTgsRecordId(); hs.Add("id", Id); if (deviceManager.InsertCctvSetting(hs) > 0) { LedDataBind(" 1=1 "); jcdlx = CmbStationType.SelectedItem.Text; jcdmc = CmbStation.SelectedItem.Text; ssjcsb = CmbDevice.SelectedItem.Text; string lblname = ""; lblname += Bll.Common.AssembleRunLog("", jcdmc, "监测点名称", "0"); lblname += Bll.Common.AssembleRunLog("", jcdlx, "监测点类型", "0"); lblname += Bll.Common.AssembleRunLog("", ssjcsb, "实时监测设备", "0"); logManager.InsertLogRunning(uName, "添加:监测点[" + jcdmc + "]" + lblname, nowIp, "1"); Notice(GetLangStr("CCTVStationManager49", "信息提示"), GetLangStr("CCTVStationManager57", "添加成功")); Window4.Hide(); } } if (HidSaveFlag.Value.ToString() == "2") { RowSelectionModel sm = this.GridDeviceManager.SelectionModel.Primary as RowSelectionModel; sm.SelectedRow.ToBuilder(); string Id = sm.SelectedRow.RecordID; hs.Add("id", Id); if (deviceManager.UptateCctvSetting(hs) > 0) { LedDataBind(" 1=1"); DataRow[] dt = dtname.Select("col0='" + Id + "'"); string jcmc = dt[0]["col2"].ToString(); string jcname = dt[0]["col2"].ToString(); string jktds = MNumChannel.Text; string hftds = RNumChannel.Text; string ssfxs = CmbDirection.SelectedItem.Text; string jzbhs = TxtMasterId.Text; string sfsts = CmbIsuse.SelectedItem.Text; string lblname = ""; lblname += Bll.Common.AssembleRunLog(jktdh, jktds, "监控通道号", "1"); lblname += Bll.Common.AssembleRunLog(hftdh, hftds, "回放通道号", "1"); lblname += Bll.Common.AssembleRunLog(ssfx, ssfxs, "所属方向", "1"); lblname += Bll.Common.AssembleRunLog(jzbh, jzbhs, "矩阵编号", "1"); lblname += Bll.Common.AssembleRunLog(sgqy, sfsts, "是否启用", "1"); logManager.InsertLogRunning(uName, "修改:[" + jcmc + "]监测点;" + lblname, nowIp, "2"); Notice(GetLangStr("CCTVStationManager49", "信息提示"), GetLangStr("CCTVStationManager58", "修改成功")); Window4.Hide(); } } } catch (Exception ex) { ILog.WriteErrorLog(ex); logManager.InsertLogError("CCTVStationManager.aspx-UpdateDevice", ex.Message + ";" + ex.StackTrace, "UpdateDevice has an exception"); } }
public void Modify() { try { RowSelectionModel sm = this.GridDeviceManager.SelectionModel.Primary as RowSelectionModel; if (sm.SelectedRow != null) { string id = sm.SelectedRow.RecordID; HidSaveFlag.Value = "2"; Window4.Title = GetLangStr("CCTVStationManager73", "修改连接设备信息"); CmbDevice.AllowBlank = true; CmbStationType.AllowBlank = true; HiddenId.Value = id; CmbStationType.Reset(); TxtQStationName.Reset(); CmbDevice.Reset(); CmbDeviceRecord.Reset(); TxtMasterId.Reset(); CmbDirection.Reset(); CmbStation.Reset(); MNumChannel.Reset(); RNumChannel.Reset();; CmbIsuse.Reset(); TxtMasterId.Reset(); ButQuery.Hidden = true; CmbStationType.Hidden = true; TxtQStationName.Hidden = true; CmbDevice.Hidden = true; CmbDeviceRecord.Hidden = true; CmbStation.Hidden = true; CompositeField1.Hidden = true; //StringBuilder mySqlBuild = new StringBuilder("STATION_ID,MCHANNELID,RCHANNELID,MASTERID,ISUSE,DIRECTION_ID"); //string mySql = mySqlBuild.ToString(); DataTable dt2 = deviceManager.GetCctvSetting("*", " id = '" + id + "'"); if (dt2 != null) { if (dt2.Rows.Count > 0) { this.StoreDirection.DataSource = tgsPproperty.GetDirectionInfoByStation(dt2.Rows[0]["col1"].ToString()); this.StoreDirection.DataBind(); MNumChannel.Text = dt2.Rows[0]["col5"].ToString(); RNumChannel.Text = dt2.Rows[0]["col18"].ToString(); TxtMasterId.Text = dt2.Rows[0]["col31"].ToString(); CmbIsuse.Value = dt2.Rows[0]["col32"].ToString(); CmbDirection.Value = dt2.Rows[0]["col3"].ToString(); } } Button5.Hidden = false; DataRow[] dr = dt2.Select("col0='" + id + "'"); jktdh = dr[0]["col5"].ToString(); hftdh = dr[0]["col18"].ToString(); ssfx = dr[0]["col4"].ToString(); jzbh = dr[0]["col31"].ToString(); DataRow[] dr1 = dtsfsy.Select("col0='" + dt2.Rows[0]["col32"].ToString() + "'"); sgqy = dr1[0]["col1"].ToString(); Window4.Show(); } } catch (Exception ex) { ILog.WriteErrorLog(ex); logManager.InsertLogError("CCTVStationManager.aspx-Modify", ex.Message + ";" + ex.StackTrace, "Modify has an exception"); } }