public FormViewRow(int itemIndex, DataControlRowType rowType, DataControlRowState rowState)
 {
     this._itemIndex = itemIndex;
     this._rowType = rowType;
     this._rowState = rowState;
     this.RenderTemplateContainer = true;
 }
Ejemplo n.º 2
0
		public GridViewRow (int rowIndex, int dataItemIndex, DataControlRowType rowType, DataControlRowState rowState)
		{
			this.rowIndex = rowIndex;
			this.dataItemIndex = dataItemIndex;
			this.rowType = rowType;
			this.rowState = rowState;
		}
Ejemplo n.º 3
0
 public GridViewTemplate(DataControlRowType type, string colNameFr, string colNameDt, Control con)
 {
     templateType = type;
     columnNameFriendly = colNameFr;
     columnNameData = colNameDt;
     control = con;
 }
 public NopGridViewCustomTemplate(DataControlRowType type, string columnName, string dataType, int paymentMethodId)
 {
     _templateType = type;
     _columnName = columnName;
     _dataType = dataType;
     _paymentMethodId = paymentMethodId;
 }
 /// <summary>
 /// 构造函数
 /// </summary>
 public GridViewTableCell(TableCell tableCell, int columnIndex, DataControlRowType rowType, DataControlRowState rowState)
 {
     this._tableCell = tableCell;
     this._columnIndex = columnIndex;
     this._rowType = rowType;
     this._rowState = rowState;
 }
Ejemplo n.º 6
0
 public GridViewTemplate(DataControlRowType type, string colname, string colNameBinding, string ctlType)
 {
     templateType = type;
     columnName = colname;
     columnNameBinding = colNameBinding;
     controlType = ctlType;
 }
		public DetailsViewPagerRow (
			int rowIndex,
			DataControlRowType rowType,
			DataControlRowState rowState
		)
			:base (rowIndex, rowType, rowState)
		{
		}
Ejemplo n.º 8
0
 public NopGridViewCustomTemplate(DataControlRowType type,
     string columnName, string DataType, int customerRoleId)
 {
     this.templateType = type;
     this.columnName = columnName;
     this.dataType = DataType;
     this.customerRoleId = customerRoleId;
 }
Ejemplo n.º 9
0
 /// <summary>
 /// 构造元素行对象
 /// </summary>
 /// <param name="strTxtID">当前TextBox控件ID</param>
 /// <param name="strField">当前TextBox控件绑定的字段</param>
 /// <param name="bReadOnly">TextBox是否只读</param>
 /// <param name="txtWidth">TextBox的宽度</param>
 public GridViewTempBrowse(string strTxtID, string strHeader, string strField, bool bReadOnly, int txtWidth)
 {
     templateType = DataControlRowType.DataRow;
     m_strTxtID = strTxtID;
     m_strField = strField;
     m_bReadOnly = bReadOnly;
     m_Width = txtWidth;
     m_strColumnText = strHeader;
 }
Ejemplo n.º 10
0
 /// <summary>
 /// ����Ԫ���ж���
 /// </summary>
 /// <param name="strTxtID">��ǰTextBox�ؼ�ID</param>
 /// <param name="strField">��ǰTextBox�ؼ��󶨵��ֶ�</param>
 /// <param name="bReadOnly">TextBox�Ƿ�ֻ��</param>
 public GridViewTempDropDownList(string strTxtID, string strHeader, string strField, bool bReadOnly, int txtWidth, DataTable data, bool AutoPostBack)
 {
     dt = data;
     templateType = DataControlRowType.DataRow;
     m_strTxtID = strTxtID;
     m_strField = strField;
     m_bReadOnly = bReadOnly;
     m_Width = txtWidth;
     mAutoPostBack = AutoPostBack;
     m_strColumnText = strHeader;
 }
Ejemplo n.º 11
0
 /// <summary>
 /// ����Ԫ���ж���
 /// </summary>
 /// <param name="strTxtID">��ǰTextBox�ؼ�ID</param>
 /// <param name="strField">��ǰTextBox�ؼ��󶨵��ֶ�</param>
 /// <param name="bReadOnly">TextBox�Ƿ�ֻ��</param>
 public GridViewTempDropDownList(string strTxtID, string strHeader, string strField, bool bReadOnly, int txtWidth, DataTable data, bool AutoPostBack, int FieldID, int FieldHTMLType, int FieldValidType, string ValidTimeTypeName)
 {
     dt = data;
     templateType = DataControlRowType.DataRow;
     m_strTxtID = strTxtID;
     m_strField = strField;
     m_bReadOnly = bReadOnly;
     m_Width = txtWidth;
     mAutoPostBack = AutoPostBack;
     m_strColumnText = strHeader;
     m_FieldID = FieldID;
     m_FieldHTMLType = FieldHTMLType;
     m_FieldValidType = FieldValidType;
     m_ValidTimeTypeName = ValidTimeTypeName;
 }
Ejemplo n.º 12
0
    protected void dgvGridView_RowDataBound(object sender, GridViewRowEventArgs e)
    {
        DataControlRowType itemType = e.Row.RowType;

        switch (itemType)
        {
        case DataControlRowType.DataRow:
            string   strID        = dgvGridView.DataKeys[e.Row.RowIndex].Values[0].ToString();
            GridView dgvSubDetail = (GridView)e.Row.FindControl("dgvSubDetail");
            if (dgvSubDetail != null)
            {
                objReturnOrder          = new tblReturnOrder();
                dgvSubDetail.DataSource = objReturnOrder.LoadReturOrderProductFromReturnOrder(strID);
                dgvSubDetail.DataBind();
                objReturnOrder = null;
            }
            break;
        }
    }
 /// <summary>
 /// 构造元素行对象
 /// </summary>
 /// <param name="strTxtID">当前TextBox控件ID</param>
 /// <param name="strField">当前TextBox控件绑定的字段</param>
 /// <param name="bReadOnly">TextBox是否只读</param>
 /// <param name="txtWidth">TextBox的宽度</param>
 public GridViewTempTextBoxIncludeHiddenValue(string strTxtID, string strHeader, string strField, bool bReadOnly, int txtWidth, int FieldID, string FieldName, string FieldDBType, int FieldHTMLType, int FieldValidType, string ValidTimeTypeName, int HasRule, DataTable dtRule, DataTable dtColumnsIndex)
 {
     templateType = DataControlRowType.DataRow;
     m_strTxtID = strTxtID;
     m_strField = strField;
     m_bReadOnly = bReadOnly;
     //m_Enabled = Enabled;
     m_Width = txtWidth;
     m_strColumnText = strHeader;
     m_FieldID = FieldID;
     m_FieldName = FieldName;
     m_FieldDBType = FieldDBType;
     m_FieldHTMLType = FieldHTMLType;
     m_FieldValidType = FieldValidType;
     m_ValidTimeTypeName = ValidTimeTypeName;
     m_hasRule = HasRule;
     m_dtRule = dtRule;
     m_dtColumnsIndex = dtColumnsIndex;
 }
Ejemplo n.º 14
0
    protected void dgvGridView_RowDataBound(object sender, System.Web.UI.WebControls.GridViewRowEventArgs e)
    {
        DataControlRowType itemType = e.Row.RowType;

        switch (itemType)
        {
        case DataControlRowType.DataRow:
            string   strID = dgvGridView.DataKeys[e.Row.RowIndex].Values[0].ToString();
            CheckBox chk   = (CheckBox)e.Row.FindControl("chkSelectRow");

            if ((chk != null))
            {
                chk.Attributes.Add("OnClick", "javascript:SelectRow(this," + strID + ")");
            }


            break;
        }
    }
Ejemplo n.º 15
0
        protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)
        {
            DataControlRowType itemType = e.Row.RowType;

            if (e.Row.RowType == DataControlRowType.Header || e.Row.RowType == DataControlRowType.DataRow)
            {
                e.Row.Attributes["onclick"] = "javascript:changeBg(this)";
            }

            if (e.Row.RowType == DataControlRowType.DataRow)
            {
                Label ln1 = (Label)e.Row.FindControl("lblid1");
                Label ln2 = (Label)e.Row.FindControl("lblid2");

                Label ll1 = (Label)e.Row.FindControl("Label1");
                Label ll2 = (Label)e.Row.FindControl("Label2");


                ll1.Text = null; ll2.Text = null;

                SqlDataReader dr = SqlHelper.ExecuteReader("select * from OA_KlAction where id='" + ln1.Text + "'");
                if (dr.Read())
                {
                    SqlDataReader datarl = SqlHelper.ExecuteReader("select count(id) as nums from OA_KlAction where  ParentNodesID='" + ln1.Text + "'");
                    if (datarl.Read())
                    {
                        string ll1_count = datarl["nums"].ToString();
                        ll1.Text = "" + ll1_count + "/" + dr["PointNum"].ToString() + "";
                    }
                    datarl.Close();
                }
                dr.Close();


                SqlDataReader datar = SqlHelper.ExecuteReader("select top 1 * from OA_KlAction where ParentNodesID='" + ln1.Text + "' order by Settime desc");
                if (datar.Read())
                {
                    ll2.Text = "" + datar["Settime"].ToString() + "<br>by " + datar["Realname"].ToString() + "";
                }
                datar.Close();
            }
        }
Ejemplo n.º 16
0
    protected void dgvGridView_RowDataBound(object sender, System.Web.UI.WebControls.GridViewRowEventArgs e)
    {
        DataControlRowType itemType = e.Row.RowType;

        switch (itemType)
        {
        case DataControlRowType.DataRow:
            string   strID = dgvGridView.DataKeys[e.Row.RowIndex].Values[0].ToString();
            CheckBox chk   = (CheckBox)e.Row.FindControl("chkSelectRow");

            if ((chk != null))
            {
                chk.Attributes.Add("OnClick", "javascript:SelectRow(this," + strID + ")");
            }

            //if ((bool)dgvGridView.DataKeys[e.Row.RowIndex].Values[1])
            //{
            //    ImageButton imd = (ImageButton)e.Row.FindControl("imgbtnIsAdd");
            //    imd.ImageUrl = "images/right_icon.png";
            //}

            //if ((bool)dgvGridView.DataKeys[e.Row.RowIndex].Values[2])
            //{
            //    ImageButton imd = (ImageButton)e.Row.FindControl("imgbtnIsEdit");
            //    imd.ImageUrl = "images/right_icon.png";
            //}

            //if ((bool)dgvGridView.DataKeys[e.Row.RowIndex].Values[3])
            //{
            //    ImageButton imd = (ImageButton)e.Row.FindControl("imgbtnIsDelete");
            //    imd.ImageUrl = "images/right_icon.png";
            //}

            //if ((bool)dgvGridView.DataKeys[e.Row.RowIndex].Values[4])
            //{
            //    ImageButton imd = (ImageButton)e.Row.FindControl("imgbtnIsActive");
            //    imd.ImageUrl = "images/right_icon.png";
            //}

            break;
        }
    }
Ejemplo n.º 17
0
    protected void dgvCategory_RowDataBound(object sender, GridViewRowEventArgs e)
    {
        DataControlRowType itemType = e.Row.RowType;

        switch (itemType)
        {
        case DataControlRowType.DataRow:
            string strID = dgvCategory.DataKeys[e.Row.RowIndex].Values[0].ToString();
            Label  lbl   = (Label)e.Row.FindControl("lblCategory");

            tblSubCategory objSubCategory = new tblSubCategory();

            objCommon = new clsCommon();
            lbl.Text  = ": " + objCommon.JoinWithComma(objSubCategory.GetAllSubCategoryProductWise(hdnPKID.Value, strID), tblSubCategory.ColumnNames.AppSubCategory, Enums.Enum_DataType.sString);
            objCommon = null;

            objSubCategory = null;
            break;
        }
    }
Ejemplo n.º 18
0
    protected void gvUserProfile_RowDataBound(object sender, GridViewRowEventArgs e)
    {
        if (Session["user"] == null || Session["access"] != "ADMIN")
        {
            Response.Redirect("../index.aspx");
        }

        DataControlRowType rtype = e.Row.RowType;

        if (rtype == DataControlRowType.Header)
        {
            e.Row.Cells[6].ToolTip  = "Middle Initial";
            e.Row.Cells[9].ToolTip  = "Phone Number";
            e.Row.Cells[12].ToolTip = "Master Reviewer";
            e.Row.Cells[13].ToolTip = "Internal Reviewer";
            e.Row.Cells[14].ToolTip = "Official Reviewer";
            e.Row.Cells[15].ToolTip = "Developer";
            e.Row.Cells[16].ToolTip = "Coordinator";
        }
    }
Ejemplo n.º 19
0
    protected void dgvColor_RowDataBound(object sender, GridViewRowEventArgs e)
    {
        DataControlRowType itemType = e.Row.RowType;

        switch (itemType)
        {
        case DataControlRowType.DataRow:
            string          strID           = dgvColor.DataKeys[e.Row.RowIndex].Values[0].ToString();
            Repeater        RepImg          = (Repeater)e.Row.FindControl("RepImg");
            tblProductImage objProductImage = new tblProductImage();
            objDataTable      = objProductImage.LoadGridData(strID);
            RepImg.DataSource = objDataTable;
            RepImg.DataBind();
            objProductImage = null;

            System.Web.UI.HtmlControls.HtmlGenericControl divSize = (System.Web.UI.HtmlControls.HtmlGenericControl)e.Row.FindControl("divSize");
            GridView dgvsize = (GridView)e.Row.FindControl("dgvSize");


            tblProductDetail objProductDetail = new tblProductDetail();
            objDataTable       = objProductDetail.LoadGridData(hdnPKID.Value, strID);
            dgvsize.DataSource = null;
            dgvsize.DataBind();
            if (objDataTable.Rows.Count > 0)
            {
                divSize.Style.Add("display", "block");
                dgvsize.DataSource = objDataTable;
                dgvsize.DataBind();
            }
            else
            {
                divSize.Style.Add("display", "none");
            }
            objProductDetail = null;



            break;
        }
    }
Ejemplo n.º 20
0
        /// <summary>
        /// Handles the Row Data bound event of the searchResults control.
        /// </summary>
        /// <param name="sender">The source of the event.</param>
        /// <param name="e">The <see cref="GridViewRowEventArgs" /> instance containing the event data.</param>
        protected void searchResults_RowDatabound(object sender, GridViewRowEventArgs e)
        {
            if (e.Row.RowType == DataControlRowType.DataRow)
            {
                //HyperLink download = ((HyperLink)e.Row.FindControl("HyperLink1"));
                //DataRowView row = (DataRowView)e.Row.DataItem;
                //download.NavigateUrl = String.Format("DownloadFile.aspx?ID={0}", row["ID"]);
            }

            DataControlRowType rowType = e.Row.RowType;

            if (rowType == DataControlRowType.DataRow)
            {
                String    mEditOnClick   = "javascript:" + string.Format("editFunction('{0}',{1},{2})", DataBinder.Eval(e.Row.DataItem, "Function_SeqID").ToString(), m_SecurityInfo.MayEdit.ToString().ToLowerInvariant(), m_SecurityInfo.MayDelete.ToString().ToLowerInvariant());
                String    mDeleteOnClick = "javascript:" + string.Format("deleteFunction('{0}','{1}')", DataBinder.Eval(e.Row.DataItem, "Function_SeqID").ToString(), DataBinder.Eval(e.Row.DataItem, "Name").ToString()).ToString();
                HtmlImage btnDetails     = (HtmlImage)(e.Row.FindControl("btnDetails"));
                e.Row.Attributes.Add("ondblclick", mEditOnClick);
                btnDetails.Attributes.Add("onclick", mEditOnClick);
                HtmlImage btnDelete = (HtmlImage)(e.Row.FindControl("btnDelete"));
                if (btnDelete != null)
                {
                    //' Add confirmation to delete button
                    btnDelete.Attributes.Add("onclick", mDeleteOnClick);
                }


                //' add the hover behavior
                if (e.Row.RowState == DataControlRowState.Normal)
                {
                    e.Row.Attributes.Add("onmouseover", "this.style.backgroundColor='Beige'");
                    e.Row.Attributes.Add("onmouseout", "this.style.backgroundColor='" + ClientChoicesState[MClientChoices.RowBackColor] + "'");
                }
                else // the alternate row.
                {
                    e.Row.Attributes.Add("onmouseover", "this.style.backgroundColor='Beige'");
                    e.Row.Attributes.Add("onmouseout", "this.style.backgroundColor='" + ClientChoicesState[MClientChoices.AlternatingRowBackColor] + "'");
                }
            }
        }
Ejemplo n.º 21
0
    protected void dgvGridView_RowDataBound(object sender, System.Web.UI.WebControls.GridViewRowEventArgs e)
    {
        DataControlRowType itemType = e.Row.RowType;

        switch (itemType)
        {
        case DataControlRowType.DataRow:
            string strOrderID     = dgvGridView.DataKeys[e.Row.RowIndex].Values[0].ToString();
            string strPaymentMode = dgvGridView.DataKeys[e.Row.RowIndex].Values[1].ToString();
            if (strOrderID != "")
            {
                GridView dgvGrid = (GridView)e.Row.FindControl("dgvSubDetail");
                if (dgvGrid != null)
                {
                    objSubOrder        = new tblSubOrder();
                    objDataTable       = objSubOrder.GetSubOrderDetailList(strOrderID, "");
                    dgvGrid.DataSource = objDataTable;
                    dgvGrid.DataBind();
                    objSubOrder = null;
                }
            }
            if (strPaymentMode != "")
            {
                Label lblPaymentMode = (Label)e.Row.FindControl("lblPaymentMode");
                if (strPaymentMode == Convert.ToInt32(Enums.PaymentMode.COD).ToString())
                {
                    lblPaymentMode.Text      = "COD";
                    lblPaymentMode.BackColor = System.Drawing.Color.Brown;
                }
                if (strPaymentMode == Convert.ToInt32(Enums.PaymentMode.PayNow).ToString())
                {
                    lblPaymentMode.Text      = "Pre-Paid";
                    lblPaymentMode.BackColor = System.Drawing.Color.Green;
                }
            }
            break;
        }
    }
Ejemplo n.º 22
0
        protected void searchResults_RowDatabound(object sender, GridViewRowEventArgs e)
        {
            DataControlRowType rowType = e.Row.RowType;

            if (rowType == DataControlRowType.DataRow)
            {
                String    mEditOnClick = "javascript:" + string.Format("edit('{0}','{1}')", DataBinder.Eval(e.Row.DataItem, "Security_Entity_SeqID").ToString(), m_SecurityInfo.MayEdit);
                HtmlImage btnDetails   = (HtmlImage)(e.Row.FindControl("btnDetails"));
                e.Row.Attributes.Add("ondblclick", mEditOnClick);
                btnDetails.Attributes.Add("onclick", mEditOnClick);
                //' add the hover behavior
                if (e.Row.RowState == DataControlRowState.Normal)
                {
                    e.Row.Attributes.Add("onmouseover", "this.style.backgroundColor='Beige'");
                    e.Row.Attributes.Add("onmouseout", "this.style.backgroundColor='" + ClientChoicesState[MClientChoices.RowBackColor] + "'");
                }
                else // the alternate row.
                {
                    e.Row.Attributes.Add("onmouseover", "this.style.backgroundColor='Beige'");
                    e.Row.Attributes.Add("onmouseout", "this.style.backgroundColor='" + ClientChoicesState[MClientChoices.AlternatingRowBackColor] + "'");
                }
            }
        }
Ejemplo n.º 23
0
    protected void dgvGridView_RowDataBound(object sender, System.Web.UI.WebControls.GridViewRowEventArgs e)
    {
        DataControlRowType itemType = e.Row.RowType;

        switch (itemType)
        {
        case DataControlRowType.DataRow:
            string   strID = dgvGridView.DataKeys[e.Row.RowIndex].Values[0].ToString();
            CheckBox chk   = (CheckBox)e.Row.FindControl("chkSelectRow");
            if ((chk != null))
            {
                chk.Attributes.Add("OnClick", "javascript:SelectRow(this," + strID + ")");
            }
            e.Row.Cells[3].Text = e.Row.Cells[3].Text + " %";
            Label lblType = (Label)e.Row.FindControl("lblType");
            if (lblType.Text != "")
            {
                if (Convert.ToInt32(lblType.Text) == Convert.ToInt32(Enums.Enum_CouponCodeType.Category))
                {
                    lblType.Text = Enums.Enum_CouponCodeType.Category.ToString();
                }
                else if (Convert.ToInt32(lblType.Text) == Convert.ToInt32(Enums.Enum_CouponCodeType.Product))
                {
                    lblType.Text = Enums.Enum_CouponCodeType.Product.ToString();
                }
                else if (Convert.ToInt32(lblType.Text) == Convert.ToInt32(Enums.Enum_CouponCodeType.SubCategory))
                {
                    lblType.Text = Enums.Enum_CouponCodeType.SubCategory.ToString();
                }
                else if (Convert.ToInt32(lblType.Text) == Convert.ToInt32(Enums.Enum_CouponCodeType.General))
                {
                    lblType.Text = Enums.Enum_CouponCodeType.General.ToString();
                }
            }
            break;
        }
    }
Ejemplo n.º 24
0
		protected virtual GridViewRow CreateRow (int rowIndex, int dataSourceIndex, DataControlRowType rowType, DataControlRowState rowState)
		{
			GridViewRow row = new GridViewRow (rowIndex, dataSourceIndex, rowType, rowState);
			return row;
		}
Ejemplo n.º 25
0
 public DetailsViewRow(int rowIndex, DataControlRowType rowType, DataControlRowState rowState)
 {
     this.rowIndex = rowIndex;
     this.rowType  = rowType;
     this.rowState = rowState;
 }
Ejemplo n.º 26
0
 public PokerFormViewRow(int itemIndex, DataControlRowType rowType, DataControlRowState rowState) : base(itemIndex, rowType, rowState)
 {
     TrackViewState();
 }
Ejemplo n.º 27
0
    protected void dgvGridView_RowDataBound(object sender, System.Web.UI.WebControls.GridViewRowEventArgs e)
    {
        DataControlRowType itemType = e.Row.RowType;

        switch (itemType)
        {
        case DataControlRowType.DataRow:
            string strOrderID          = dgvGridView.DataKeys[e.Row.RowIndex].Values[0].ToString();
            string strPaymentMode      = dgvGridView.DataKeys[e.Row.RowIndex].Values[3].ToString();
            string strCourierCompanyId = dgvGridView.DataKeys[e.Row.RowIndex].Values[1].ToString();
            string strDocketNo         = dgvGridView.DataKeys[e.Row.RowIndex].Values[2].ToString();
            if (strOrderID != "")
            {
                GridView dgvGrid = (GridView)e.Row.FindControl("dgvSubDetail");
                if (dgvGrid != null)
                {
                    objSubOrder        = new tblSubOrder();
                    dgvGrid.DataSource = objSubOrder.GetSubOrderDetailList(strOrderID, Convert.ToInt32(Enums.Enums_OrderStatus.Shipped).ToString());
                    dgvGrid.DataBind();
                    objSubOrder = null;
                }
            }
            if (strPaymentMode != "")
            {
                Label lblPaymentMode = (Label)e.Row.FindControl("lblPaymentMode");
                if (strPaymentMode == Convert.ToInt32(Enums.PaymentMode.COD).ToString())
                {
                    lblPaymentMode.Text      = "COD";
                    lblPaymentMode.BackColor = System.Drawing.Color.Brown;
                }
                if (strPaymentMode == Convert.ToInt32(Enums.PaymentMode.PayNow).ToString())
                {
                    lblPaymentMode.Text      = "Pre-Paid";
                    lblPaymentMode.BackColor = System.Drawing.Color.Green;
                }
            }

            System.Web.UI.HtmlControls.HtmlGenericControl divCourierCompany = (System.Web.UI.HtmlControls.HtmlGenericControl)e.Row.FindControl("divCourierCompany");
            divCourierCompany.Visible = false;
            TextBox    txtDocketNo    = (TextBox)e.Row.FindControl("txtDocketNo");
            LinkButton lnkAddDocketNo = (LinkButton)e.Row.FindControl("lnkAddDocketNo");
            if (strDocketNo != "")
            {
                objSubOrder      = new tblSubOrder();
                txtDocketNo.Text = strDocketNo;
                txtDocketNo.Style.Add("display", "block");
                txtDocketNo.Enabled    = false;
                lnkAddDocketNo.Visible = false;
                objSubOrder            = null;
            }
            else if (strCourierCompanyId != "" && strDocketNo == "")
            {
                txtDocketNo.Style.Add("display", "block");
                lnkAddDocketNo.Visible = true;
            }
            else if (strCourierCompanyId == "" && strDocketNo == "")
            {
                txtDocketNo.Style.Add("display", "none");
                lnkAddDocketNo.Visible    = false;
                divCourierCompany.Visible = true;
                DropDownList ddlCourierCompany = (DropDownList)e.Row.FindControl("ddlCourierCompany");
                objCommon = new clsCommon();
                objCommon.FillDropDownListWithOutDefaultValue(ddlCourierCompany, "tblCourierCompany", tblCourierCompany.ColumnNames.AppCourierCompany, tblCourierCompany.ColumnNames.AppCourierCompanyID, tblCourierCompany.ColumnNames.AppDisplayOrder, appFunctions.Enum_SortOrderBy.Asc, tblCourierCompany.ColumnNames.AppIsActive + "=1");
                objCommon = null;
            }
            break;
        }
    }
Ejemplo n.º 28
0
		// View state Stuff
		public PokerGridViewRow(int rowIndex,int dataItemIndex,DataControlRowType rowType,DataControlRowState rowState)
		       :base(rowIndex,dataItemIndex,rowType,rowState)
		{
			TrackViewState ();
		}
			public FormViewRow DoCreateRow (int itemIndex,DataControlRowType rowType,DataControlRowState rowState)
			{
				return CreateRow( itemIndex, rowType,rowState); 
			}
 protected virtual new GridViewRow CreateRow(int rowIndex, int dataSourceIndex, DataControlRowType rowType, DataControlRowState rowState)
 {
     return(default(GridViewRow));
 }
Ejemplo n.º 31
0
 public FormViewRow(int itemIndex, DataControlRowType rowType, DataControlRowState rowState)
 {
     this.rowIndex = itemIndex;
     this.rowType  = rowType;
     this.rowState = rowState;
 }
Ejemplo n.º 32
0
        public DynamicGridViewTextTemplate(DataControlRowType RowType, int ArticleCount)
        {
            _rowType = RowType;

            _Count = ArticleCount;
        }
Ejemplo n.º 33
0
        public DynamicGridViewTextTemplate(string ColName, DataControlRowType RowType)
        {
            _ColName = ColName;

            _rowType = RowType;
        }
Ejemplo n.º 34
0
 /// <summary>
 /// Overload Constructor for SetTemplate
 /// </summary>
 /// <param name="dataControlRowType"></param>
 /// <param name="columnName"></param>
 public SetTemplate(DataControlRowType dataControlRowType, string columnName)
 {
     _dataControlRowType = dataControlRowType;
     _columnName         = columnName;
 }
Ejemplo n.º 35
0
 /// <summary>
 /// Constructor for SetTemplate
 ///
 /// this() -> automatically calls the overloaded constructor
 /// </summary>
 /// <param name="dataControlRowType"></param>
 public SetTemplate(DataControlRowType dataControlRowType) : this(dataControlRowType, string.Empty)
 {
 }
Ejemplo n.º 36
0
 protected override GridViewRow CreateRow(int rowIndex, int dataSourceIndex, DataControlRowType rowType,
                                          DataControlRowState rowState)
 {
     return(base.CreateRow(rowIndex, dataSourceIndex, rowType, DataControlRowState.Edit));
 }
			public DetailsViewRow  DoCreateRow (int rowIndex,DataControlRowType rowType, DataControlRowState rowState)
			{
				return CreateRow (rowIndex, rowType, rowState); 
			}
Ejemplo n.º 38
0
        private GridViewRow CreateRow(int rowIndex, int dataSourceIndex, DataControlRowType rowType, DataControlRowState rowState, bool dataBind, object dataItem, DataControlField[] fields, TableRowCollection rows, PagedDataSource pagedDataSource) {
            GridViewRow row = CreateRow(rowIndex, dataSourceIndex, rowType, rowState);
            GridViewRowEventArgs e = new GridViewRowEventArgs(row);

            if (rowType != DataControlRowType.Pager) {
                InitializeRow(row, fields);
            }
            else {
                InitializePager(row, fields.Length, pagedDataSource);
            }

            if (dataBind) {
                row.DataItem = dataItem;
            }

            OnRowCreated(e);
            rows.Add(row);

            if (dataBind) {
                row.DataBind();
                OnRowDataBound(e);
                row.DataItem = null;
            }

            return row;
        }
Ejemplo n.º 39
0
 public NopGridViewCustomTemplate(DataControlRowType type,
                                  string columnName, string DataType)
     : this(type, columnName, DataType, 0)
 {
 }
 public GridViewCheckBox(DataControlRowType type, string colname, string colvisible)
 {
     templateType = type;
     columnName = colname;
     columnVisible = colvisible;
 }
			public PokerFormViewRow (int itemIndex,DataControlRowType rowType,DataControlRowState rowState) : base(itemIndex,rowType,rowState)
			{				
			TrackViewState ();
			}
Ejemplo n.º 42
0
 protected override GridViewRow CreateRow(int rowIndex, int dataSourceIndex, DataControlRowType rowType,
     DataControlRowState rowState)
 {
     return base.CreateRow(rowIndex, dataSourceIndex, rowType, DataControlRowState.Edit);
 }
Ejemplo n.º 43
0
		public GridViewRow doCreateRow (int rowIndex, int dataSourceIndex, DataControlRowType rowType, DataControlRowState rowState)
		{
			return base.CreateRow (rowIndex, dataSourceIndex, rowType, rowState);
		}
Ejemplo n.º 44
0
		/// <summary>
		/// 模版构造函数
		/// </summary>
		/// <param name="type">指定数据控件中行的功能类型</param>
		/// <param name="multiSelect">是否多选</param>
		/// <param name="chkItemName"></param>
		/// <remarks>
		/// 模版构造函数
		/// </remarks>
		public CheckBoxTemplate(DataControlRowType type, string chkItemName, bool multiSelect)
		{
			this.templateType = type;
			this.isMultiSelect = multiSelect;
			this.checkItemName = chkItemName;
		}
 public GridViewRow(int rowIndex, int dataItemIndex, DataControlRowType rowType, DataControlRowState rowState)
 {
 }
        private GridViewRow GetGridViewRow(DataControlRowType type)
        {
            var row = new GridViewRow(0, 0, type, DataControlRowState.Normal);

            row.Cells.Add(new TableCell());
            row.Cells[0].Controls.Add(new Label {
                ID = "lblTotalRecords"
            });
            row.Cells[0].Controls.Add(new Label {
                ID = "lblTotalNumberOfPages", Text = "3"
            });
            row.Cells[0].Controls.Add(new LinkButton {
                ID = "lbPending"
            });
            row.Cells[0].Controls.Add(new LinkButton {
                ID = "lbSent"
            });
            row.Cells[0].Controls.Add(new LinkButton {
                ID = "lbSaved"
            });
            row.Cells[0].Controls.Add(new LinkButton {
                ID = "lbEditCampaignName"
            });
            row.Cells[0].Controls.Add(new CheckBox {
                ID = "chkArchive"
            });
            row.Cells[0].Controls.Add(new HtmlButton {
                ID = "liDeleteCampaign"
            });

            _lbDeleteCampaign = new LinkButton {
                ID = "lbDeleteCampaign"
            };
            row.Cells[0].Controls.Add(_lbDeleteCampaign);

            _txtGoToPage = new TextBox {
                ID = "txtGoToPage"
            };
            row.Cells[0].Controls.Add(_txtGoToPage);

            var ddlPageSize = new DropDownList();

            ddlPageSize = new DropDownList()
            {
                ID = "ddlPageSize"
            };
            row.Cells[0].Controls.Add(ddlPageSize);

            var table = new DataTable();

            table.Columns.Add("CIPending", typeof(string));
            table.Columns.Add("CISent", typeof(string));
            table.Columns.Add("CISaved", typeof(string));
            table.Columns.Add("IsArchived", typeof(bool));

            var dr = table.NewRow();

            dr["CIPending"]  = "0";
            dr["CISent"]     = "0";
            dr["CISaved"]    = "0";
            dr["IsArchived"] = true;
            table.Rows.Add(dr);

            var drv = table.DefaultView[table.Rows.IndexOf(dr)];

            row.DataItem = drv;
            DataRowView drvCurrent = (DataRowView)row.DataItem;

            return(row);
        }
Ejemplo n.º 47
0
		public DetailsViewRow (int rowIndex, DataControlRowType rowType, DataControlRowState rowState)
		{
			this.rowIndex = rowIndex;
			this.rowType = rowType;
			this.rowState = rowState;
		}
Ejemplo n.º 48
0
 public GridViewDDLTemplate(DataControlRowType type, string colname, List <string> Options)
 {
     templateType = type;
     columnName   = colname;
     options      = Options;
 }
 public DetailsViewPagerRow(int rowIndex, DataControlRowType rowType, DataControlRowState rowState) : base(rowIndex, rowType, rowState)
 {
 }
Ejemplo n.º 50
0
 /// <summary>
 /// 构造表头列对象
 /// </summary>
 /// <param name="strColumnText">表头字符串</param>
 public GridViewTempBrowse(string strColumnText)
 {
     templateType = DataControlRowType.Header;
     m_strColumnText = strColumnText;
 }
Ejemplo n.º 51
0
 public ViewTemplate(DataControlRowType type, string colname)
 {
     templateType = type;
     columnName   = colname;
 }
 public CffGridViewNotesTemplate(DataControlRowType type, string colname)
 {
     templateType = type;
     columnName   = colname;
 }
Ejemplo n.º 53
0
 /// <summary>
 /// 添加模板
 /// </summary>
 /// <param name="strColumnName">列名</param>
 /// <param name="dcrtColumnType">列类型</param>
 public MulTextBoxTemplate(string strColumnName, DataControlRowType dcrtColumnType)
 {
     this.strColumnName  = strColumnName;
     this.dcrtColumnType = dcrtColumnType;
 }
Ejemplo n.º 54
0
 protected virtual new DetailsViewRow CreateRow(int rowIndex, DataControlRowType rowType, DataControlRowState rowState)
 {
     return(default(DetailsViewRow));
 }
 public CheckBoxMatrizTemplateCasoDeUso(DataControlRowType type, string colname)
 {
     templateType = type;
     columnName   = colname;
 }
Ejemplo n.º 56
0
 public GridViewSelectTemplate(DataControlRowType type, string colname)
 {
     templateType = type;
     columnName = colname;
 }
 public NopGridViewCustomTemplate(DataControlRowType type, string columnName, string DataType)
     : this(type, columnName, DataType, 0)
 {
 }
Ejemplo n.º 58
0
        private DetailsViewRow CreateRow(int rowIndex, DataControlRowType rowType, DataControlRowState rowState, DataControlField field, TableRowCollection rows, PagedDataSource pagedDataSource) {
            DetailsViewRow row = CreateRow(rowIndex, rowType, rowState);

            rows.Add(row);
            if (rowType != DataControlRowType.Pager) {
                InitializeRow(row, field);
            } else {
                InitializePager(row, pagedDataSource);
            }

            return row;
        }
 public FormViewPagerRow(int rowIndex, DataControlRowType rowType, DataControlRowState rowState) : base (default(int), default(DataControlRowType), default(DataControlRowState))
 {
 }
Ejemplo n.º 60
0
 /// <devdoc>
 /// <para>[To be supplied.]</para>
 /// </devdoc>
 protected virtual DetailsViewRow CreateRow(int rowIndex, DataControlRowType rowType, DataControlRowState rowState) {
     if (rowType == DataControlRowType.Pager) {
         return new DetailsViewPagerRow(rowIndex, rowType, rowState);
     }
     return new DetailsViewRow(rowIndex, rowType, rowState);
 }