void Bind() { UDS.Components.DocumentFlow df = new UDS.Components.DocumentFlow(); DataTable dt; Table tt = new Table(); TableRow tr = new TableRow(); TableCell tc = new TableCell(); tt.Style.Add("font-size", "10pt"); tt.Width = Unit.Percentage(100); tt.HorizontalAlign = HorizontalAlign.Center; AddRow(tt, df.GetFlowTitle(FlowID), Color.FromArgb(250, 250, 250)); df.GetStep(FlowID, 0, out dt); for (int i = 0; i < dt.Rows.Count; i++) { AddStep(tt, dt.Rows[i], i + 1); AddRow(tt, "<span lang='EN-US' style='font-size: 10.5pt; font-family: Wingdings'>ò</span>", Color.FromArgb(250, 250, 250)); } df = null; AddRow(tt, "<a href='#' onclick='history.back();'>流程结束</a>", Color.FromArgb(250, 250, 250)); Page.Controls.Add(tt); }
private void Bind() { UDS.Components.DocumentFlow df = new UDS.Components.DocumentFlow(); DataTable dt; labTitle.Text = df.GetFlowTitle(FlowID); df.GetStep(FlowID,0,out dt); dgStepList.DataSource = dt.DefaultView; dgStepList.DataBind(); df = null; }
private void Bind() { UDS.Components.DocumentFlow df = new UDS.Components.DocumentFlow(); DataTable dt; labTitle.Text = df.GetFlowTitle(FlowID); df.GetStep(FlowID, 0, out dt); dgStepList.DataSource = dt.DefaultView; dgStepList.DataBind(); df = null; }
private void InitHeadLine() { UDS.Components.DocumentFlow df = new UDS.Components.DocumentFlow(); labTitle.Text = df.GetFlowTitle(FlowID) + "->" + df.GetStepTitle(FlowID,StepID); df = null; }
private void Bangding() { UDS.Components.DocumentFlow df = new UDS.Components.DocumentFlow(); bIsExistStep = StepID>df.GetMaxStep(FlowID)?false:true; labStep.Text = "����:��" + StepID.ToString() + "��"; labFlowName.Text = df.GetFlowTitle(FlowID); if(bIsExistStep==true) { DataTable dt; df.GetStep(FlowID,StepID,out dt); if(dt.Rows.Count >0) { txtTacheName.Text = dt.Rows[0]["Step_Name"].ToString(); txtRemark.Text = dt.Rows[0]["Step_Remark"].ToString(); if(dt.Rows[0]["RightToFinish"].ToString()=="True") { chkFinishYes.Checked = true; chkFinishNO.Checked = false; } else { chkFinishYes.Checked = false; chkFinishNO.Checked = true; } txtPassNum.Text = dt.Rows[0]["PassNum"].ToString(); if(Int32.Parse(txtPassNum.Text)==0) { radPassNumYes.Checked = false; radPassNumNo.Checked = true; PassNum.Style["display"] = "none"; } else { radPassNumNo.Checked = false; radPassNumYes.Checked = true; PassNum.Style["display"] = ""; if(Int32.Parse(txtPassNum.Text)==-1) { chkAllPass.Checked = true; } else { chkAllPass.Checked = false; } } for(int i=0;i<cboFlowRule.Items.Count;i++) { if(cboFlowRule.Items[i].Value.ToString()==dt.Rows [0]["Flow_Rule"].ToString() ) cboFlowRule.SelectedIndex = i; } if(dt.Rows[0]["localalert"].ToString()=="True") chkLocalAlert.Checked = true; else chkLocalAlert.Checked = false; if(Int32.Parse(dt.Rows[0]["cycTimes"].ToString())>0) { chkUrgencyAlert.Checked = true; spanAlert.Style["display"] = ""; txtBaseHour.Text = dt.Rows[0]["BaseHour"].ToString(); txtCycTimes.Text = dt.Rows[0]["CycTimes"].ToString(); txtPeriod.Text = dt.Rows[0]["Period"].ToString(); } else { chkUrgencyAlert.Checked = false; spanAlert.Style["display"] = "none"; txtBaseHour.Text = "0"; txtCycTimes.Text = "0"; txtPeriod.Text = "0"; } } df = null; cmdDelete.Enabled =true; } else { spanAlert.Style["display"] = "none"; txtBaseHour.Text = "0"; txtCycTimes.Text = "0"; txtPeriod.Text = "0"; cmdDelete.Enabled = false; } cmdCancel.Attributes.Add("onclick","return confirm('�Ƿ�ɾ�������̣�');"); }
private void InitHeadLine() { UDS.Components.DocumentFlow df = new UDS.Components.DocumentFlow(); labTitle.Text = df.GetFlowTitle(FlowID) + "->" + df.GetStepTitle(FlowID, StepID); df = null; }
void Bind() { UDS.Components.DocumentFlow df = new UDS.Components.DocumentFlow(); DataTable dt; Table tt = new Table(); TableRow tr = new TableRow(); TableCell tc = new TableCell(); tt.Style.Add("font-size", "10pt"); tt.Width = Unit.Percentage(100); tt.HorizontalAlign = HorizontalAlign.Center; AddRow(tt, df.GetFlowTitle(FlowID), Color.FromArgb(250, 250, 250)); df.GetStep(FlowID, 0, out dt); for (int i = 0; i < dt.Rows.Count; i++) { AddStep(tt, dt.Rows[i], i + 1); AddRow(tt, "<span lang='EN-US' style='font-size: 10.5pt; font-family: Wingdings'>��</span>", Color.FromArgb(250, 250, 250)); } df = null; AddRow(tt, "<a href='#' onclick='history.back();'>���̽���</a>", Color.FromArgb(250, 250, 250)); Page.Controls.Add(tt); }
private void Bangding() { UDS.Components.DocumentFlow df = new UDS.Components.DocumentFlow(); bIsExistStep = StepID > df.GetMaxStep(FlowID)?false:true; labStep.Text = "步骤:第" + StepID.ToString() + "步"; labFlowName.Text = df.GetFlowTitle(FlowID); if (bIsExistStep == true) { DataTable dt; df.GetStep(FlowID, StepID, out dt); if (dt.Rows.Count > 0) { txtTacheName.Text = dt.Rows[0]["Step_Name"].ToString(); txtRemark.Text = dt.Rows[0]["Step_Remark"].ToString(); if (dt.Rows[0]["RightToFinish"].ToString() == "True") { chkFinishYes.Checked = true; chkFinishNO.Checked = false; } else { chkFinishYes.Checked = false; chkFinishNO.Checked = true; } txtPassNum.Text = dt.Rows[0]["PassNum"].ToString(); if (Int32.Parse(txtPassNum.Text) == 0) { radPassNumYes.Checked = false; radPassNumNo.Checked = true; PassNum.Style["display"] = "none"; } else { radPassNumNo.Checked = false; radPassNumYes.Checked = true; PassNum.Style["display"] = ""; if (Int32.Parse(txtPassNum.Text) == -1) { chkAllPass.Checked = true; } else { chkAllPass.Checked = false; } } for (int i = 0; i < cboFlowRule.Items.Count; i++) { if (cboFlowRule.Items[i].Value.ToString() == dt.Rows [0]["Flow_Rule"].ToString()) { cboFlowRule.SelectedIndex = i; } } if (dt.Rows[0]["localalert"].ToString() == "True") { chkLocalAlert.Checked = true; } else { chkLocalAlert.Checked = false; } if (Int32.Parse(dt.Rows[0]["cycTimes"].ToString()) > 0) { chkUrgencyAlert.Checked = true; spanAlert.Style["display"] = ""; txtBaseHour.Text = dt.Rows[0]["BaseHour"].ToString(); txtCycTimes.Text = dt.Rows[0]["CycTimes"].ToString(); txtPeriod.Text = dt.Rows[0]["Period"].ToString(); } else { chkUrgencyAlert.Checked = false; spanAlert.Style["display"] = "none"; txtBaseHour.Text = "0"; txtCycTimes.Text = "0"; txtPeriod.Text = "0"; } } df = null; cmdDelete.Enabled = true; } else { spanAlert.Style["display"] = "none"; txtBaseHour.Text = "0"; txtCycTimes.Text = "0"; txtPeriod.Text = "0"; cmdDelete.Enabled = false; } cmdCancel.Attributes.Add("onclick", "return confirm('是否删除此流程?');"); }