Пример #1
0
 protected void gridUnit_RowDoubleClick(object sender, ExtAspNet.GridRowClickEventArgs e)
 {
     object[] key = gridUnit.DataKeys[e.RowIndex];
     selectUnitArgs.UnitId = Convert.ToInt64(key[0]);
     OnQueryUnitById(null, selectUnitArgs);
     PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference());
 }
Пример #2
0
 protected void gridTemp_RowDoubleClick(object sender, ExtAspNet.GridRowClickEventArgs e)
 {
     object[] key = gridTemp.DataKeys[e.RowIndex];
     if (Request.QueryString["status"] == "1")
     {
         Session["SelectedTemplateIdAdd"] = Convert.ToInt64(key[0]);
         //selectTempArgs.TempID = Convert.ToInt64(Session["SelectedTemplateIdEdit"]);
         selectTempArgs.TempIDAdd = Convert.ToInt64(key[0]);
         OnQueryTempNameByIdForAdd(null, selectTempArgs);
     }
     if (Request.QueryString["status"] == "2")
     {
         Session["SelectedTemplateIdEdit"] = Convert.ToInt64(key[0]);
         //selectTempArgs.TempID = Convert.ToInt64(Session["SelectedTemplateIdEdit"]);
         selectTempArgs.TempIDEdit = Convert.ToInt64(key[0]);
         OnQueryTempNameByIDForEdit(null, selectTempArgs);
     }
     if (Request.QueryString["status"] == "3")
     {
         Session["ExeTempID"] = Convert.ToInt64(key[0]);
         //selectTempArgs.TempID = Convert.ToInt64(Session["ExeTempID"]);
         selectTempArgs.TempIDExeTemp = Convert.ToInt64(key[0]);
         ONQueryTempNameByIdForExeCheck(null, selectTempArgs);
     }
     PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference()); // 关闭当前窗口
 }
Пример #3
0
        /// <summary>
        /// 订单主表行点击事件,点击行后加载相对应信息
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void gdOrders_RowClick(object sender, ExtAspNet.GridRowClickEventArgs e)
        {
            int states = Convert.ToInt32(gdOrders.DataKeys[e.RowIndex][1]);

            //如果订单状态为完成总检状态时,不可以添加诊断信息
            if (states >= (int)ParamStatus.OrdersStatus.FinishCheck)
            {
                btnInsertOrderdiagnosis.Hidden        = true;
                btnSaveOrderdiagnosis.Hidden          = true;
                btnDeleteOrderdiagnosis.Hidden        = true;
                btnInsertOrderdiagnosis.OnClientClick = "";
            }
            else
            {
                btnInsertOrderdiagnosis.Hidden        = false;
                btnSaveOrderdiagnosis.Hidden          = false;
                btnDeleteOrderdiagnosis.Hidden        = false;
                btnInsertOrderdiagnosis.OnClientClick = winDictdiagnosis.GetShowReference(String.Format("./AnaResultSum_AddDictdiagnosisWin.aspx?ordernum={0}", gdOrders.DataKeys[e.RowIndex][0]));
            }
            btnRecoder.OnClientClick = winArchives.GetShowReference("./AnaResultSum_ArchivesWin.aspx?dictmemberid=" + gdOrders.DataKeys[e.RowIndex][3]);
            LoadAllTabData(e.RowIndex);
            ClearOrderdiagnosis();

            BindResult(gdOrders.DataKeys[e.RowIndex][0].ToString());
        }
Пример #4
0
        //左边grid数据行选择改变时绑定右边grid数据
        protected void gvList_RowClick(object sender, ExtAspNet.GridRowClickEventArgs e)
        {
            ViewState["currentrowindex"] = e.RowIndex;
            string billheadid = gvList.Rows[e.RowIndex].Values[0].ToString();

            BindBillDetail(billheadid);
            BindBillDetailCount(billheadid);
        }
Пример #5
0
 protected void gridTask_RowDoubleClick(object sender, ExtAspNet.GridRowClickEventArgs e)
 {
     object[] key = gridTask.DataKeys[e.RowIndex];
     Session["TaskIdExe"]         = key[0];
     Session["TaskNameExe"]       = key[1];
     Session["TaskTemplateIdExe"] = key[2];
     PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference());
 }
Пример #6
0
        /// <summary>
        /// 订单主表Grid,行单击事件
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void gdOrders_RowClick(object sender, ExtAspNet.GridRowClickEventArgs e)
        {
            // InitTab();
            object ordernum = gdOrders.Rows[e.RowIndex].DataKeys[0];

            if (ordernum == null)
            {
                return;
            }
            BindTab(ordernum.ToString());
        }
Пример #7
0
        protected void gdPASTORDERS_RowClick(object sender, ExtAspNet.GridRowClickEventArgs e)
        {
            string ordernum = string.Empty;

            if (gdPASTORDERS.DataKeys[e.RowIndex][0] != null)
            {
                ordernum = gdPASTORDERS.DataKeys[e.RowIndex][0].ToString();
            }
            else
            {
                return;
            }
            LoadAllTabData(ordernum);
        }
Пример #8
0
 //行点击事件
 protected void gdVisitList_RowClick(object sender, ExtAspNet.GridRowClickEventArgs e)
 {
     if (gdVisitList.SelectedRowIndexArray.Length > 0)
     {
         Hashtable ht = new Hashtable();
         ht.Add("visitid", gdVisitList.DataKeys[gdVisitList.SelectedRowIndexArray[0]][0]);
         DataTable dt = ordersService.GetVisitList(ht);
         if (dt != null || dt.Rows.Count > 0)
         {
             DataRow dr = dt.Rows[0];
             txtVisitdate.Text   = Convert.ToDateTime(dr["visittime"]).ToString("yyyy-MM-dd HH:mm:ss");
             txtVisitDoctor.Text = dr["visitor"].ToString();
             txtVisitText.Text   = dr["visitcontext"].ToString();
         }
     }
     else
     {
         clearVisit();
     }
 }
Пример #9
0
 protected void GridMember_RowClick(object sender, ExtAspNet.GridRowClickEventArgs e)
 {
     selectMemberByRowIndex(e.RowIndex);
 }
Пример #10
0
        //protected void Grid1_RowCommand(object sender, ExtAspNet.GridCommandEventArgs e)
        //{
        //    if (e.CommandName == "AuthoritySelect")
        //    {

        //        //int i = Convert.ToInt32(e.CommandArgument.ToString());

        //        //int i = ((ExtAspNet.GridRow)((ExtAspNet.CheckBoxList)e.).NamingContainer).RowIndex;//(该方法不需要html中的绑定,取id.刚刚看到的,加上来,好方法.......)

        //        int i = e.RowIndex;
        //      //  ExtAspNet.TextBox tb = (ExtAspNet.TextBox)Grid1.Rows[i].FindControl("textbox3");

        //        //string str = tb.Text.Trim();
        //        //Response.Write(str);

        //    }


        //}

        protected void Grid1_RowClick(object sender, ExtAspNet.GridRowClickEventArgs e)
        {
            // ((ExtAspNet.CheckBoxField)Grid1.Rows[e.RowIndex].FindControl("cbxAuthority")).Checked = true;
            //  ExtAspNet.CheckBoxField myCheckBoxField = Grid1.FindColumn("cbxAuthority") as ExtAspNet.CheckBoxField;
            //  ExtAspNet.BoundField bf = (ExtAspNet.BoundField)Grid1.FindColumn("cbxAuthority");
            // if (bf.HeaderText)
            //   string aa = ;
            //  cbxAuthority.SetCheckedState(e.RowIndex, true);
            //int i = e.RowIndex;
            //bool EnableSelect = false;
            //string menuId = Convert.ToString(Grid1.DataKeys[i][0]);
            //string mname = Convert.ToString(Grid1.DataKeys[i][1]);
            //int Depth = Convert.ToInt32(Grid1.DataKeys[i][2]);
            //if (menuId == "s")
            //{
            //    foreach (int row in Grid1.SelectedRowIndexArray)
            //    {
            //        if (row == i)
            //        {
            //            EnableSelect = true;

            //        }
            //    }

            //    int AlreadyNum = 0;
            //    foreach (int row in Grid1.SelectedRowIndexArray)
            //    {
            //        for (int k = 0; k < Depth; k++)
            //        {
            //            if (row == k + i + 1)
            //            {
            //                AlreadyNum++;
            //            }
            //        }

            //    }
            //    int num = 0;
            //    if (EnableSelect)
            //    {
            //        int[] TaxRates = new int[Depth - AlreadyNum + Grid1.SelectedRowIndexArray.Length];
            //        foreach (int row in Grid1.SelectedRowIndexArray)
            //        {
            //            TaxRates[num++] = row;
            //        }
            //        for (int k = 0; k < Depth; k++)
            //        {
            //            TaxRates[num++] = k + e.RowIndex;
            //        }
            //        Grid1.SelectedRowIndexArray = TaxRates;
            //    }
            //    else
            //    {
            //        int[] TaxRates = new int[Grid1.SelectedRowIndexArray.Length - AlreadyNum];
            //        foreach (int row in Grid1.SelectedRowIndexArray)
            //        {
            //            bool b = false;
            //            for (int k = 0; k < Depth; k++)
            //            {

            //                if (row == k + i + 1)
            //                {
            //                    b = true;
            //                }
            //            }
            //            if (!b)
            //            {
            //                TaxRates[num++] = row;

            //            }
            //        }

            //        Grid1.SelectedRowIndexArray = TaxRates;
            //    }

            //}
            //else
            //{
            //    int num = 0;
            //    int[] TaxRates = new int[Grid1.SelectedRowIndexArray.Length + 1];
            //    foreach (int row in Grid1.SelectedRowIndexArray)
            //    {
            //        TaxRates[num++] = row;
            //    } TaxRates[num] = e.RowIndex;
            //}
        }
Пример #11
0
 protected void ShowDetails(object sender, ExtAspNet.GridRowClickEventArgs e)
 {
 }
Пример #12
0
 protected void gridOrgan_RowDoubleClick(object sender, ExtAspNet.GridRowClickEventArgs e)
 {
     SetValue();
 }
Пример #13
0
 protected virtual void OnRowDoubleClick(GridRowClickEventArgs e)
 {
     EventHandler<GridRowClickEventArgs> handler = Events[_rowDoubleClickHandlerKey] as EventHandler<GridRowClickEventArgs>;
     if (handler != null)
     {
         handler(this, e);
     }
 }
Пример #14
0
 protected void gridRole_RowDoubleClick(object sender, ExtAspNet.GridRowClickEventArgs e)
 {
     PageContext.RegisterStartupScript(win_Edit.GetShowReference("AddRole.aspx", "新增"));
 }
Пример #15
0
 protected void ShowDetails(object sender, ExtAspNet.GridRowClickEventArgs e)
 {
     // Alert.ShowInTop(String.Format("你点击了第 {0} 行(双击)", e.RowIndex));
     // Window1.GetShowReference("~/bugTracer/create_bug.aspx", "查看");
 }
Пример #16
0
 protected void gr_Main_RowDoubleClick(object sender, ExtAspNet.GridRowClickEventArgs e)
 {
 }