Ejemplo n.º 1
0
        private void BindGrid()
        {
            UDS.Components.DocumentFlow df = new UDS.Components.DocumentFlow();

            if (DocID == 0)
            {
                lbReceiver.Enabled   = false;
                lbSignIner.Enabled   = false;
                lbUnSignIner.Enabled = false;
                lbPostiler.Enabled   = false;
            }


            DataTable dt;

            switch (DisplayType)
            {
            case 0:
                if (DocID > 0)
                {
                    df.GetStaffInStep(DocID, out dt);
                }
                else
                {
                    df.GetStaffInStep(FlowID, StepID, out dt);
                }
                break;

            case 1:
                df.GetReceiver(DocID, out dt);
                break;

            case 2:
                df.GetSignIner(DocID, out dt);
                break;

            case 3:
                df.GetUnSignIner(DocID, out dt);
                break;

            case 4:
                df.GetPostiler(DocID, out dt);
                break;

            default:
                dt = null;
                break;
            }
            if (dt != null)
            {
                dbStaffList.DataSource = dt.DefaultView;
                dbStaffList.DataBind();
            }
        }
Ejemplo n.º 2
0
        private void BindGrid()
        {
            UDS.Components.DocumentFlow df = new UDS.Components.DocumentFlow();

            if(DocID==0)
            {
                lbReceiver.Enabled		= false;
                lbSignIner.Enabled		= false;
                lbUnSignIner.Enabled	= false;
                lbPostiler.Enabled		= false;
            }

            DataTable dt;

            switch(DisplayType)
            {
                case 0:
                    if(DocID>0)
                        df.GetStaffInStep(DocID,out dt);
                    else
                    {
                        df.GetStaffInStep(FlowID,StepID,out dt);
                    }
                    break;
                case 1:
                    df.GetReceiver(DocID,out dt);
                    break;
                case 2:
                    df.GetSignIner(DocID,out dt);
                    break;
                case 3:
                    df.GetUnSignIner(DocID,out dt);
                    break;
                case 4:
                    df.GetPostiler(DocID,out dt);
                    break;
                default:
                    dt = null;
                    break;
            }
            if(dt !=null)
            {
                dbStaffList.DataSource = dt.DefaultView;
                dbStaffList.DataBind();
            }
        }