protected void FixedAssetID_Init(object sender, EventArgs e)
        {
            string entCode = "", procCat = "";

            entCode = CAPEXCIP.GetRowValues(CAPEXCIP.FocusedRowIndex, "EntCode").ToString();
            procCat = CAPEXCIP.GetRowValues(CAPEXCIP.FocusedRowIndex, "ProcCat").ToString();

            MRPClass.PrintString(entCode + " : " + procCat);

            DataTable    dtRecord = GlobalClass.FixedAssetIDTable(entCode, procCat);
            ASPxComboBox combo    = sender as ASPxComboBox;

            combo.DataSource = dtRecord;
            ListBoxColumn l_ValueField = new ListBoxColumn();

            l_ValueField.FieldName = "ID";
            l_ValueField.Caption   = "CODE";
            l_ValueField.Width     = 125;
            combo.Columns.Add(l_ValueField);

            ListBoxColumn l_TextField = new ListBoxColumn();

            l_TextField.FieldName = "NAME";
            l_TextField.Width     = 350;
            combo.Columns.Add(l_TextField);

            combo.ValueField = "ID";
            combo.TextField  = "ID";
            combo.DataBind();

            combo.Value = sFixedAssetID.ToString();
            combo.Text  = sFixedAssetID.ToString();
        }
        private void BindCapex(string month, string year, string entity, string bu)
        {
            if (string.IsNullOrEmpty(month) && string.IsNullOrEmpty(year))
            {
                return;
            }

            CAPEXCIP.DataSource   = CapexCIP.CAPEXCIP_Table(month, year, entity, bu);
            CAPEXCIP.KeyFieldName = "PK";
            CAPEXCIP.DataBind();
        }
 protected void CAPEXCIP_StartRowEditing(object sender, DevExpress.Web.Data.ASPxStartRowEditingEventArgs e)
 {
     bindCapexCIP  = false;
     sFixedAssetID = CAPEXCIP.GetRowValues(CAPEXCIP.FocusedRowIndex, "CIPSIPNumber").ToString();
 }