private void InitControl() { UDS.Components.DocumentFlow df = new UDS.Components.DocumentFlow(); DisplayStatus = df.GetDocumentStatus(DocID, UserName); //移动表单的位置 tabDispDocument.Style["Left"] = "0px"; tabDispDocument.Style["Top"] = "0px"; if (DisplayStatus == 0) //签收状态 { cmdSignIn.Visible = true; cmdCancelSignIn.Visible = false; cmdPostilNext.Visible = false; cmdPostilFaile.Visible = false; cmdPostilFinish.Visible = false; cmdBack.Visible = false; FlowState = false; } else if (DisplayStatus == 1) //一般批阅状态 { cmdSignIn.Visible = false; cmdCancelSignIn.Visible = true; cmdPostilNext.Visible = true; cmdPostilFaile.Visible = true; cmdPostilFinish.Visible = true; cmdBack.Visible = true; FlowState = true; } else if (DisplayStatus == 2) //撤消状态,现在已经没有撤消状态了,只有文档是草稿才能删除 { cmdSignIn.Visible = true; cmdCancelSignIn.Visible = false; cmdPostilNext.Visible = false; cmdPostilFaile.Visible = false; cmdPostilFinish.Visible = false; cmdBack.Visible = false; FlowState = false; } else if (DisplayStatus == 4) //会签状态批阅 { cmdSignIn.Visible = false; cmdCancelSignIn.Visible = true; cmdPostilNext.Visible = true; cmdPostilFaile.Visible = true; cmdPostilFinish.Visible = false; cmdBack.Visible = true; FlowState = true; } else //查看状态 { cmdSignIn.Visible = false; cmdCancelSignIn.Visible = false; cmdPostilNext.Visible = false; cmdPostilFaile.Visible = false; cmdPostilFinish.Visible = false; cmdBack.Visible = false; FlowState = false; } df = null; tabDispDocument.Style.Add("BORDER-COLLAPSE", "collapse"); }
private void InitControl() { UDS.Components.DocumentFlow df = new UDS.Components.DocumentFlow(); DisplayStatus = df.GetDocumentStatus(DocID,UserName); //�ƶ������λ�� tabDispDocument.Style["Left"] = "0px"; tabDispDocument.Style["Top"] = "0px"; if(DisplayStatus==0) //ǩ��״̬ { cmdSignIn.Visible = true; cmdCancelSignIn.Visible = false; cmdPostilNext.Visible = false; cmdPostilFaile.Visible = false; cmdPostilFinish.Visible = false; cmdBack.Visible = false; FlowState = false; } else if(DisplayStatus==1) //һ������״̬ { cmdSignIn.Visible = false; cmdCancelSignIn.Visible = true; cmdPostilNext.Visible = true; cmdPostilFaile.Visible = true; cmdPostilFinish.Visible = true; cmdBack.Visible = true; FlowState = true; } else if(DisplayStatus==2) //����״̬�������Ѿ�û�г���״̬�ˣ�ֻ���ĵ��Dzݸ����ɾ�� { cmdSignIn.Visible = true; cmdCancelSignIn.Visible = false; cmdPostilNext.Visible = false; cmdPostilFaile.Visible = false; cmdPostilFinish.Visible = false; cmdBack.Visible = false; FlowState = false; } else if(DisplayStatus==4) //��ǩ״̬���� { cmdSignIn.Visible = false; cmdCancelSignIn.Visible = true; cmdPostilNext.Visible = true; cmdPostilFaile.Visible = true; cmdPostilFinish.Visible = false; cmdBack.Visible = true; FlowState = true; } else //�鿴״̬ { cmdSignIn.Visible = false; cmdCancelSignIn.Visible = false; cmdPostilNext.Visible = false; cmdPostilFaile.Visible = false; cmdPostilFinish.Visible = false; cmdBack.Visible = false; FlowState = false; } df = null; tabDispDocument.Style.Add("BORDER-COLLAPSE","collapse"); }