Example #1
0
 private void DeleteCode(string _codeID)
 {
     ICD10CODE code = new ICD10CODE();
     code.LoadByPrimaryKey(_codeID);
     code.MarkAsDeleted();
     code.Save();
 }
Example #2
0
 private void loadCode()
 {
     ICD10CODE code = new ICD10CODE();
     grdItem.DataSource = code.FilterICDCode(txtFilter.Text, int.Parse(dropItems.SelectedValue));
     grdItem.DataBind();
 }
    /// <summary>
    /// load codes related to selected item
    /// </summary>
    public void loadCode()
    {
        ICD10CODE cod = new ICD10CODE();
        cod.Where.FK_ITEMID.Value = dropICDItem.SelectedValue;
        cod.Where.FK_ITEMID.Operator = MyGeneration.dOOdads.WhereParameter.Operand.Equal;
        cod.Query.AddOrderBy(ICD10CODE.ColumnNames.CODEDESCREN, MyGeneration.dOOdads.WhereParameter.Dir.ASC);
        if (cod.Query.Load())
        {
            dropICDcode.DataSource = cod.DefaultView;
            dropICDcode.DataTextField = ICD10CODE.ColumnNames.CODEDESCREN;
            dropICDcode.DataValueField = ICD10CODE.ColumnNames.ICDCODEID;
            dropICDcode.DataBind();

            ListItem item = new ListItem(" ", "0");
            dropICDcode.Items.Insert(0, item);
            dropICDcode.SelectedIndex = 0;
        }
        else
        {
            dropICDcode.Items.Clear();
        }
    }